/* Shared Auth Layout — Vasi Web Institute */

.auth-page {
    background: #eef3fa;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-page--standalone {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 86, 224, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(10, 30, 61, 0.12) 0%, transparent 50%),
        linear-gradient(160deg, #eef4ff 0%, #f8fafc 45%, #ffffff 100%);
}

.auth-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0a1e3d 0%, #124080 40%, #0056e0 100%);
    padding: 3.5rem 0;
    text-align: center;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(0, 86, 224, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.auth-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.auth-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
}

.auth-hero__breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.auth-hero__breadcrumb li + li::before {
    content: "/";
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.35);
}

.auth-hero__breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.auth-hero__breadcrumb a:hover,
.auth-hero__breadcrumb a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.auth-hero__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.auth-hero__lead {
    max-width: 640px;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.auth-section {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding: 0 1.25rem 4rem;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
    align-items: stretch;
}

.auth-aside {
    padding: 2rem;
    background: linear-gradient(160deg, #0a1e3d 0%, #124080 55%, #0056e0 100%);
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(10, 30, 61, 0.18);
}

.auth-aside__title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
}

.auth-aside__text {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.auth-aside__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-aside__list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.auth-aside__list li + li {
    margin-top: 0.75rem;
}

.auth-aside__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #a8c4ff;
    font-weight: 700;
}

.auth-card {
    padding: 1.75rem 2rem;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(10, 30, 61, 0.08);
}

.auth-card__heading {
    margin: 0 0 0.5rem;
    color: #0a1e3d;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.auth-card__subtitle {
    margin: 0 0 1.5rem;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 2rem);
    padding: 2rem 1.25rem;
}

.auth-card--standalone {
    width: 100%;
    max-width: 460px;
}

.auth-card__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.45rem 0.85rem;
    background: #ffffff;
    border: 1px solid #e2e9f3;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 30, 80, 0.08);
    text-decoration: none;
}

.auth-card__brand img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 200px;
    object-fit: contain;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.7rem 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    border-radius: 10px;
}

.auth-alert--error {
    color: #9b1c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.auth-alert--success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.auth-alert__list {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-form {
    display: grid;
    gap: 1.1rem;
}

.auth-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}

.auth-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: #0a1e3d;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #1a2b4a;
    background: #f8fafc;
    border: 1px solid #d0dbe8;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input:focus {
    background: #ffffff;
    border-color: #0056e0;
    box-shadow: 0 0 0 3px rgba(0, 86, 224, 0.15);
    outline: none;
}

.auth-field input[aria-invalid="true"] {
    border-color: #ef4444;
    background: #fffafa;
}

.auth-field__error {
    margin: 0.35rem 0 0;
    color: #b91c1c;
    font-size: 0.8125rem;
}

.auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.875rem;
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #0056e0;
}

.auth-link {
    color: #0056e0;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    background: #0056e0;
    border: 2px solid #0056e0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.auth-btn:hover,
.auth-btn:focus-visible {
    background: #0047b8;
    border-color: #0047b8;
    transform: translateY(-1px);
    outline: none;
}

.auth-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8edf4;
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .auth-aside {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .auth-section {
        margin-top: 1.5rem;
        padding: 0 1rem 2.5rem;
    }

    .auth-page--login .auth-aside,
    .auth-page--register .auth-aside {
        display: none;
    }

    .auth-page--login .auth-layout,
    .auth-page--register .auth-layout {
        gap: 0;
    }

    .auth-page--login .auth-section,
    .auth-page--register .auth-section {
        margin-top: 1.25rem;
    }
}

@media (max-width: 600px) {
    .auth-hero {
        padding: 2.75rem 0;
    }

    .auth-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .auth-form__grid {
        grid-template-columns: 1fr;
    }

    .auth-form__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .auth-page--login .auth-section,
    .auth-page--register .auth-section {
        margin-top: 1rem;
        padding: 0 0.875rem 2rem;
    }

    .auth-page--login .auth-card,
    .auth-page--register .auth-card {
        padding: 1.25rem 1rem;
        box-shadow: 0 8px 28px rgba(10, 30, 61, 0.07);
    }

    .auth-page--login .auth-card__footer,
    .auth-page--register .auth-card__footer {
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
}
