/* Login polish — scoped so the rest of the app is untouched. */
.auth-page {
    --navy: #293f92;
    --navy-dark: #1a2b68;
    --ink: #1b2437;
    --muted: #6b7280;
    --line: #e4e8ef;
    --field: #f7f8fb;
    min-height: 100vh;
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--ink);
    background: #101830;
}

.auth-page .auth-layout-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 32px 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-page .auth-layout-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, rgba(41, 63, 146, 0.42) 0%, rgba(16, 24, 48, 0.72) 100%);
}

.auth-page .auth-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    min-width: 0 !important;
    margin: 0 auto;
    padding: 0;
}

.auth-page .auth-card {
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 1px 2px rgba(16, 24, 48, 0.06),
        0 18px 48px rgba(16, 24, 48, 0.28);
    overflow: hidden;
    animation: auth-card-in 0.45s ease-out;
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.auth-page .auth-card-body {
    padding: 36px 32px 28px;
}

.auth-page .auth-logo {
    text-align: center;
    margin: 0 0 22px;
}

.auth-page .auth-logo img {
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: none;
}

.auth-page .auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: center;
}

.auth-page .auth-lead {
    margin: 6px 0 22px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
}

.auth-page .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdecec;
    color: #9b1c1c;
    font-size: 13px;
    line-height: 1.4;
}

.auth-page .auth-alert svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.auth-page .form-group {
    margin-bottom: 16px;
}

.auth-page .form-group label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #3d4654;
}

.auth-page .auth-field {
    position: relative;
}

.auth-page .auth-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: #8b93a3;
    pointer-events: none;
}

.auth-page .auth-field input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--field);
    color: var(--ink);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-page .auth-field input::placeholder {
    color: #9aa3b2;
}

.auth-page .auth-field input:hover {
    border-color: #cfd6e2;
    background: #fff;
}

.auth-page .auth-field input:focus {
    outline: 0;
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(41, 63, 146, 0.14);
}

.auth-page .auth-toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8b93a3;
    cursor: pointer;
    padding: 0;
}

.auth-page .auth-toggle-pass:hover,
.auth-page .auth-toggle-pass[aria-pressed="true"] {
    color: var(--navy);
    background: rgba(41, 63, 146, 0.08);
}

.auth-page .auth-toggle-pass:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(41, 63, 146, 0.18);
}

.auth-page .auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 18px rgba(41, 63, 146, 0.28);
}

.auth-page .auth-submit:hover {
    background: var(--navy-dark);
}

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

.auth-page .auth-submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(41, 63, 146, 0.2);
}

.auth-page .auth-submit.is-busy,
.auth-page .auth-submit:disabled {
    opacity: 0.78;
    cursor: progress;
    box-shadow: none;
}

.auth-page .auth-help {
    margin: 16px 0 0;
    text-align: center;
}

.auth-page .auth-help a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

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

.auth-page .auth-foot {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
    .auth-page .auth-card-body {
        padding: 28px 20px 22px;
    }

    .auth-page .auth-logo img {
        max-width: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page .auth-card {
        animation: none;
    }
}
