:root {
    color-scheme: light;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(38, 132, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #f4f7fb 0%, #eef3ff 48%, #f8fbff 100%);
    color: #1f2937;
}

.auth-shell {
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-card {
    min-height: calc(100vh - 3rem);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.75rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.96);
}

.auth-form-wrap {
    width: 100%;
    max-width: 30rem;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background-color: #e0ecff;
    color: #1d4ed8;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.auth-title {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    color: #0f172a;
}

.auth-subtitle {
    margin-bottom: 2rem;
    color: #64748b;
    font-size: 1rem;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
    padding: clamp(3rem, 5vw, 4.5rem);
    color: #fff;
    background:
        linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(29, 78, 216, 0.88)),
        linear-gradient(135deg, #0f172a, #1d4ed8);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-brand-panel::before {
    width: 18rem;
    height: 18rem;
    top: -5rem;
    right: -4rem;
}

.auth-brand-panel::after {
    width: 14rem;
    height: 14rem;
    bottom: -4rem;
    left: -3rem;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 40rem;
}

.auth-logo {
    display: block;
    width: 100%;
    max-width: 22rem;
    margin-bottom: 2rem;
    overflow: visible;
}

.auth-logo img {
    display: block;
    width: calc(100% + 13%);
    max-width: none;
    height: auto;
    transform: translateX(-13%);
    transform-origin: left center;
}

.auth-brand-content h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
}

.auth-brand-content p {
    margin-bottom: 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.auth-graphic {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    text-align: center;
}

.auth-graphic img,
.auth-graphic svg {
    max-width: min(100%, 34rem);
    height: auto;
    filter: drop-shadow(0 1.5rem 3rem rgba(15, 23, 42, 0.28));
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #334155;
}

.form-control,
.form-check-input {
    border-color: #cbd5e1;
}

.form-control {
    min-height: 3rem;
    padding: 0.75rem 0.95rem;
    border-radius: 0.9rem;
}

.form-control:focus,
.form-check-input:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.input-group > .form-control {
    border-right: 0;
}

.input-group > .password-toggle {
    border: 1px solid #cbd5e1;
    border-left: 0;
    border-radius: 0 0.9rem 0.9rem 0;
    background: #fff;
    color: #64748b;
}

.input-group > .password-toggle:hover {
    color: #1d4ed8;
}

.input-group > .password-toggle:focus {
    z-index: 3;
    color: #1d4ed8;
    box-shadow: none;
}

.btn-primary {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-radius: 0.9rem;
    font-weight: 600;
}

.auth-links a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.validation-summary-errors ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.validation-summary-valid {
    display: none;
}

.text-danger {
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        padding: 1rem;
    }

    .auth-card {
        min-height: auto;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 2.5rem 1.75rem;
    }

    .auth-form-panel {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-title {
        font-size: 1.8rem;
    }

    .auth-brand-content h2 {
        font-size: 2rem;
    }
}
