/* Judisyn — Auth pages */

.auth-page {
    min-height: 100vh;
    background: #f4f7fb;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 520px);
    min-height: 100vh;
}

.auth-brand-panel {
    position: relative;
    background: linear-gradient(160deg, var(--judisyn-navy) 0%, var(--judisyn-blue) 55%, #1a4a7a 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-brand-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.auth-logo-badge {
    display: inline-flex;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.auth-brand-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-brand-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.auth-feature-list i {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.2);
    color: var(--judisyn-gold-light);
    font-size: 0.95rem;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: white;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--judisyn-shadow-lg);
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-mobile-logo .auth-logo-badge {
    margin-bottom: 0;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--judisyn-navy);
    margin-bottom: 0.35rem;
}

.auth-form-header p {
    color: var(--judisyn-muted);
    margin: 0;
    font-size: 0.95rem;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--judisyn-text);
    margin-bottom: 0.4rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--judisyn-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.auth-input-wrap .form-control {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid #dde4ed;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fafbfd;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input-wrap .form-control:focus {
    border-color: var(--judisyn-blue-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}

.auth-input-wrap .form-control.is-invalid {
    border-color: #dc3545;
    background: #fff8f8;
}

.auth-field-error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #c0392b;
    font-size: 0.82rem;
    margin-top: 0.4rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0 1.5rem;
}

.auth-remember .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 4px;
    border-color: #c5d0dc;
    cursor: pointer;
}

.auth-remember .form-check-input:checked {
    background-color: var(--judisyn-navy);
    border-color: var(--judisyn-navy);
}

.auth-remember label {
    font-size: 0.9rem;
    color: var(--judisyn-muted);
    cursor: pointer;
    margin: 0;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-link {
    color: var(--judisyn-blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--judisyn-navy);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

.auth-footer-text {
    text-align: center;
    margin: 1.75rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--judisyn-silver);
    color: var(--judisyn-muted);
    font-size: 0.9rem;
}

.auth-footer-text a {
    color: var(--judisyn-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-text a:hover {
    color: var(--judisyn-navy);
    text-decoration: underline;
}

.auth-alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-intro {
    color: var(--judisyn-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-logo {
        display: block;
    }

    .auth-form-panel {
        padding: 1.5rem 1rem;
        align-items: flex-start;
        padding-top: 2.5rem;
    }

    .auth-form-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}
