@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

.auth-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #eef3ff 0%, #f7f8fa 45%, #f7f8fa 100%);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #12141d;
    padding: 3rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(24, 30, 60, 0.08);
    padding: 2.5rem 2.25rem;
}

.auth-logo img {
    height: 30px;
    width: 30px;
    border-radius: 6px;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    color: #6b7080;
    font-size: 0.88rem;
    margin: 0 0 1.75rem;
}

.auth-field {
    margin-bottom: 1.1rem;
    position: relative;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3a3d4a;
    margin-bottom: 0.4rem;
}

.auth-field input {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1.5px solid #e3e5ea;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fbfbfc;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:hover {
    border-color: #cfd3dc;
}

.auth-field input:focus {
    outline: none;
    border-color: #1863dc;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(24, 99, 220, 0.12);
}

/* Password rules / helptext: collapsed by default, revealed while the field
   is focused so the form doesn't read as a wall of bullet points up front. */
.auth-field .helptext {
    font-size: 0.78rem;
    color: #6b7080;
    margin-top: 0.4rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.auth-field:focus-within .helptext {
    max-height: 12rem;
    opacity: 1;
}

.auth-field .helptext ul {
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.85rem 0.65rem 1.6rem;
    background: #f5f7fb;
    border-radius: 8px;
    list-style: none;
}

.auth-field .helptext ul li {
    position: relative;
    line-height: 1.5;
}

.auth-field .helptext ul li::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 0.55rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9aa1b3;
}

.auth-field ul.errorlist {
    list-style: none;
    color: #c0392b;
    font-size: 0.8rem;
    margin: 0.4rem 0 0;
    padding: 0.5rem 0.75rem;
    background: #fdecea;
    border-radius: 8px;
}

.auth-field ul.errorlist li + li {
    margin-top: 0.2rem;
}

.auth-errors {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
}

.auth-submit {
    width: 100%;
    background: #1863dc;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 0.8rem;
    font-size: 0.98rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: background 0.15s ease, transform 0.05s ease;
}

.auth-submit:hover {
    background: #124fb0;
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-switch {
    margin-top: 1.5rem;
    font-size: 0.86rem;
    text-align: center;
    color: #6b7080;
}

.auth-switch a {
    color: #1863dc;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}
