/* Financial login – Afroways-inspired split layout, Brimlly theme */

.bf-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f0f4f8;
}

.bf-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bf-auth-navbar {
    background: linear-gradient(135deg, var(--bf-primary) 0%, var(--bf-accent) 100%);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(13, 59, 102, 0.2);
}

.bf-auth-navbar .brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

.bf-auth-navbar .brand span {
    color: #7dd3fc;
}

.bf-auth-navbar .nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    margin-left: 1.25rem;
}

.bf-auth-navbar .nav-links a:hover {
    color: #fff;
}

.bf-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

.bf-auth-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.bf-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.bf-auth-info h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--bf-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bf-auth-info .lead {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.bf-auth-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bf-auth-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #334155;
    font-size: 0.95rem;
}

.bf-auth-trust-list i {
    color: var(--bf-accent);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    width: 20px;
}

.bf-auth-trust-list a {
    color: var(--bf-accent);
    font-weight: 600;
}

.bf-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(13, 59, 102, 0.12);
    border: 1px solid rgba(13, 59, 102, 0.08);
    position: relative;
    overflow: hidden;
}

.bf-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bf-primary), var(--bf-accent), var(--bf-primary));
    background-size: 200% 100%;
}

.bf-auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bf-primary);
    margin-bottom: 0.35rem;
}

.bf-auth-card .subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.bf-auth-field {
    position: relative;
    margin-bottom: 1.25rem;
}

.bf-auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

.bf-auth-field input {
    width: 100%;
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bf-auth-field input:focus {
    outline: none;
    border-color: var(--bf-accent);
    box-shadow: 0 0 0 3px rgba(26, 107, 181, 0.15);
}

.bf-auth-field .field-icon {
    position: absolute;
    right: 1rem;
    bottom: 0.95rem;
    color: #94a3b8;
    cursor: default;
}

.bf-auth-field .field-icon.toggle-pw {
    cursor: pointer;
}

.bf-auth-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.bf-auth-options a {
    color: var(--bf-accent);
    text-decoration: none;
    font-weight: 500;
}

.bf-auth-options a:hover {
    text-decoration: underline;
}

.bf-auth-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--bf-primary) 0%, var(--bf-accent) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s, transform 0.15s;
}

.bf-auth-submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    color: #fff;
}

.bf-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.bf-auth-footer a {
    color: var(--bf-accent);
    font-weight: 600;
    text-decoration: none;
}

.bf-auth-footer a:hover {
    text-decoration: underline;
}

.bf-auth-validation {
    color: var(--bf-danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.bf-auth-summary-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.bf-auth-footer-page {
    text-align: center;
    padding: 1rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .bf-auth-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bf-auth-info {
        text-align: center;
    }

    .bf-auth-trust-list li {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .bf-auth-card {
        padding: 1.75rem 1.25rem;
    }

    .bf-auth-navbar .nav-links {
        display: none;
    }
}
