/* Sign-in, forgot/reset password and other account pages (server-rendered). */
.auth-shell {
    --auth-navy: #0d3373;
    --auth-navy-2: #123f86;
    --auth-ink: #172744;
    --auth-muted: #66748c;
    --auth-line: #d6dce7;
    --auth-link: #1a4fb0;
    min-height: 100vh;
    display: flex;
    background: #fbfcfe;
    color: var(--auth-ink);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.auth-hero {
    flex: 0 0 auto;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.auth-hero img {
    display: block;
    height: 100vh;
    width: auto;
    max-width: 52vw;
    object-fit: cover;
    object-position: left center;
}

.auth-main {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 24px;
    overflow: hidden;
}

/* Soft blue waves in the corners, as in the design. */
.auth-main::before,
.auth-main::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-main::before {
    width: 620px;
    height: 360px;
    top: -170px;
    right: -170px;
    background: radial-gradient(closest-side, #dfe9f8 0%, #edf3fc 55%, rgba(237, 243, 252, 0) 100%);
}

.auth-main::after {
    width: 760px;
    height: 420px;
    bottom: -220px;
    right: -120px;
    background: radial-gradient(closest-side, #e2ebf9 0%, #eef4fc 55%, rgba(238, 244, 252, 0) 100%);
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 45, 99, 0.10), 0 2px 6px rgba(17, 45, 99, 0.05);
    padding: 44px 44px 38px;
    box-sizing: border-box;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.auth-brand svg {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    color: var(--auth-navy);
}

.auth-brand h1 {
    margin: 0;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0c2c66;
}

.auth-subtitle {
    margin: 8px 0 32px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--auth-muted);
}

.auth-intro {
    margin: -12px 0 24px;
    text-align: center;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 22px;
}

.auth-input {
    position: relative;
}

.auth-input input {
    width: 100%;
    height: 58px;
    box-sizing: border-box;
    padding: 0 54px 0 56px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #fff;
    color: var(--auth-ink);
    font-size: 1.05rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input input::placeholder {
    color: #6f7c93;
}

.auth-input input:focus {
    outline: none;
    border-color: #1d4fa8;
    box-shadow: 0 0 0 3px rgba(29, 79, 168, 0.15);
}

.auth-input .icon {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: #56627a;
    pointer-events: none;
}

.auth-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    padding: 6px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #56627a;
    cursor: pointer;
}

.auth-toggle:focus-visible {
    outline: 2px solid #1d4fa8;
}

.auth-toggle svg {
    width: 24px;
    height: 24px;
}

.auth-toggle .eye,
.auth-toggle.is-visible .eye-off {
    display: none;
}

.auth-toggle.is-visible .eye {
    display: block;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 30px;
    flex-wrap: wrap;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    cursor: pointer;
}

.auth-check input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--auth-navy);
}

.auth-link {
    color: var(--auth-link);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--auth-navy-2), var(--auth-navy));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(13, 51, 115, 0.25);
    text-decoration: none;
}

.auth-btn:hover {
    background: linear-gradient(180deg, #164a9a, #0f3a80);
}

.auth-btn svg {
    width: 24px;
    height: 24px;
}

.auth-alert {
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-alert.error {
    background: #fdecea;
    color: #8a1c13;
}

.auth-alert.success {
    background: #e7f6ec;
    color: #19612f;
}

.auth-alert.info {
    background: #eaf1fd;
    color: #1d3f7a;
}

.auth-back {
    display: block;
    margin-top: 24px;
    text-align: center;
}

.auth-card .validation-message {
    margin-top: 6px;
    color: #c62828;
    font-size: 0.85rem;
}

.auth-credit {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-credit a {
    color: var(--auth-link);
    font-weight: 600;
    text-decoration: none;
}

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

@media (max-width: 1000px) {
    .auth-hero {
        display: none;
    }
}

@media (max-width: 560px) {
    .auth-card {
        padding: 30px 20px 26px;
        border-radius: 18px;
    }

    .auth-brand svg {
        width: 44px;
        height: 44px;
    }

    .auth-brand h1 {
        font-size: 1.6rem;
    }
}
