/* ====================================
   Client Authentication Styles
   Login page, signup auth fields,
   portal support bar, and auth states
   ==================================== */

/* ====================================
   Auth Hero Section
   ==================================== */
.auth-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #E8A0BF 0%, #D4829C 50%, #C06B84 100%);
    overflow: hidden;
    text-align: center;
}

.auth-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.08' d='M0,96L48,112C96,128,192,160,288,176C384,192,480,192,576,170.7C672,149,768,107,864,112C960,117,1056,171,1152,186.7C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
}

/* ====================================
   Auth Card (Login Form)
   ==================================== */
.auth-section {
    padding: 60px 0 80px;
    background: var(--warm-white, #FFFBF7);
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.auth-card-header {
    text-align: center;
    padding: 40px 40px 20px;
}

.auth-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #E8A0BF, #D4829C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon i {
    font-size: 28px;
    color: white;
}

.auth-card-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    color: #333;
    margin: 0 0 8px;
}

.auth-card-header p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* ====================================
   Auth Form
   ==================================== */
.auth-form {
    padding: 20px 40px 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-form .form-group label i {
    margin-right: 6px;
    color: #D4829C;
}

.auth-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
    box-sizing: border-box;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #E8A0BF;
    box-shadow: 0 0 0 3px rgba(232, 160, 191, 0.15);
    background: white;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    padding: 4px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #D4829C;
}

/* Auth Error Message */
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.auth-error i {
    margin-right: 6px;
}

/* Auth Success Message */
.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px 20px;
    color: #16a34a;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.auth-success i {
    margin-right: 6px;
}

.auth-success a {
    color: #D4829C;
    font-weight: 600;
}

/* Auth Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 50px;
    font-weight: 600;
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    padding: 0 40px;
    position: relative;
    margin: 10px 0 20px;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 1px;
    background: #eee;
}

/* Auth Links */
.auth-links {
    padding: 0 40px 20px;
    text-align: center;
}

.auth-links p {
    color: #888;
    font-size: 14px;
    margin: 8px 0;
}

.auth-links a {
    color: #D4829C;
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Auth Scripture */
.auth-scripture {
    background: linear-gradient(135deg, #FFF8F0, #FFF5EB);
    padding: 25px 40px;
    text-align: center;
    border-top: 1px solid #f0e8e0;
}

.auth-scripture i {
    color: #D4AF37;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

.auth-scripture p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    color: #D4829C;
    font-style: italic;
    margin: 0 0 6px;
    line-height: 1.5;
}

.auth-scripture cite {
    color: #8C8C8C;
    font-size: 13px;
    font-style: normal;
}

/* ====================================
   Password Strength Meter
   ==================================== */
.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s, background-color 0.3s;
    width: 0;
}

.strength-fill.weak {
    background: #ef4444;
}

.strength-fill.fair {
    background: #f59e0b;
}

.strength-fill.good {
    background: #10b981;
}

.strength-fill.strong {
    background: #059669;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    min-width: 50px;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.fair {
    color: #f59e0b;
}

.strength-text.good {
    color: #10b981;
}

.strength-text.strong {
    color: #059669;
}

/* ====================================
   Portal Hero Actions (Logout)
   ==================================== */
.portal-hero-actions {
    margin-top: 20px;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* ====================================
   Portal Support Bar
   ==================================== */
.portal-support-bar {
    padding: 40px 0;
    background: linear-gradient(135deg, #FFF8F0, #FFF5EB);
    border-top: 1px solid #f0e8e0;
    border-bottom: 1px solid #f0e8e0;
}

.portal-support-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.portal-support-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, #E8A0BF, #D4829C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-support-icon i {
    font-size: 24px;
    color: white;
}

.portal-support-text h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    color: #333;
    margin: 0 0 4px;
}

.portal-support-text p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.portal-support-contact {
    display: flex;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.portal-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #E8A0BF, #D4829C);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.portal-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 130, 156, 0.3);
}

.portal-support-btn-secondary {
    background: linear-gradient(135deg, #555, #333);
}

.portal-support-btn-secondary:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 768px) {
    .auth-card-header {
        padding: 30px 24px 16px;
    }

    .auth-form {
        padding: 16px 24px 24px;
    }

    .auth-divider {
        padding: 0 24px;
    }

    .auth-divider::before {
        left: 24px;
        right: 24px;
    }

    .auth-links {
        padding: 0 24px 16px;
    }

    .auth-scripture {
        padding: 20px 24px;
    }

    .auth-card-header h3 {
        font-size: 24px;
    }

    .portal-support-content {
        flex-direction: column;
        text-align: center;
    }

    .portal-support-contact {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }

    .portal-support-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-hero {
        padding: 120px 0 60px;
    }

    .auth-section {
        padding: 40px 0 60px;
    }

    .auth-card {
        margin: 0 10px;
        border-radius: 16px;
    }

    .auth-card-header {
        padding: 24px 20px 12px;
    }

    .auth-form {
        padding: 12px 20px 20px;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
    }

    .auth-icon i {
        font-size: 24px;
    }

    .auth-divider {
        padding: 0 20px;
    }

    .auth-divider::before {
        left: 20px;
        right: 20px;
    }

    .auth-links {
        padding: 0 20px 12px;
    }

    .auth-scripture {
        padding: 16px 20px;
    }

    .portal-support-bar {
        padding: 30px 0;
    }
}
