.auth-page {
    min-height: 100vh;
    margin: 0;
    background: #f4f6fb;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-brand {
    flex: 1 1 42%;
    background: linear-gradient(145deg, #0b1f3a 0%, #123a6b 45%, #1e5f9e 100%);
    color: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -80px;
    right: -60px;
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -40px;
    left: -40px;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-logo {
    max-height: 72px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.auth-brand h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.auth-brand p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.auth-features i {
    color: #7dd3fc;
    width: 1.25rem;
    text-align: center;
}

.auth-panel {
    flex: 1 1 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.auth-card-header {
    padding: 1.75rem 1.75rem 0;
}

.auth-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.auth-card-header p {
    color: #64748b;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.auth-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.auth-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    background: #f8fafc;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.auth-input-wrap .form-control,
.auth-input-wrap .form-select {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
}

.auth-btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    border: 0;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    transition: transform 0.12s, box-shadow 0.12s;
}

.auth-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.auth-footer-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer-links a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

.auth-color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.auth-color-option {
    position: relative;
    cursor: pointer;
}

.auth-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-color-swatch {
    display: block;
    height: 2rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: transform 0.12s, border-color 0.12s;
}

.auth-color-option input:checked + .auth-color-swatch {
    border-color: #0f172a;
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-brand {
        flex: 0 0 auto;
        padding: 2rem 1.5rem;
    }

    .auth-brand-inner {
        max-width: none;
    }

    .auth-features {
        display: none;
    }
}
