/**
 * Solutionsathi.com - Customer Authentication Stylesheet (auth.css)
 * Dedicated project-relative stylesheet for login, register, verify-email, forgot-password, reset-password
 * Strictly Bootstrap 5 First, Minimal Custom CSS
 */

.auth-page-wrap {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero, linear-gradient(180deg, #F1FAF3 0%, #F7FBF8 100%));
    padding: 32px 16px;
}

@media (max-width: 575.98px) {
    .auth-page-wrap {
        padding: 20px 12px;
        min-height: auto;
    }
}

/* Authentication Card Container */
.auth-card {
    max-width: 480px;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--color-border, #E5EDE7);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin: 0 auto;
}

/* Card Header Brand Logo */
.auth-brand-box {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md, 12px);
    background: var(--gradient-primary, linear-gradient(135deg, #218653 0%, #155C3A 100%));
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(33, 134, 83, 0.25);
    margin-bottom: 12px;
}

/* Input Fields & Input Groups */
.auth-form-control {
    height: 46px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm, 8px);
    border-color: var(--color-border, #E5EDE7);
    transition: border-color var(--transition-fast, 0.15s ease), box-shadow var(--transition-fast, 0.15s ease);
}

.auth-form-control:focus {
    border-color: var(--color-primary, #218653);
    box-shadow: 0 0 0 0.2rem rgba(33, 134, 83, 0.15);
}

.auth-input-group .auth-form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-password-toggle {
    border-color: var(--color-border, #E5EDE7);
    background-color: #FFFFFF;
    color: var(--color-text-secondary, #6C7B71);
    border-top-right-radius: var(--radius-sm, 8px) !important;
    border-bottom-right-radius: var(--radius-sm, 8px) !important;
    padding: 0 14px;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-password-toggle:hover {
    background-color: #F8FAF9;
    color: var(--color-primary-dark, #155C3A);
}

/* Primary Submit Button */
.auth-btn-submit {
    height: 46px;
    font-size: 0.925rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(33, 134, 83, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 134, 83, 0.3);
}

.auth-btn-submit:active {
    transform: translateY(0);
}

/* Subtle Or Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--color-text-muted, #8E9F94);
    font-size: 0.775rem;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border, #E5EDE7);
}

.auth-divider:not(:empty)::before {
    margin-right: 12px;
}

.auth-divider:not(:empty)::after {
    margin-left: 12px;
}

/* Password Strength Indicator */
.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background-color: #E5EDE7;
    overflow: hidden;
    margin-top: 6px;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak { width: 33%; background-color: var(--color-danger, #E25241); }
.strength-medium { width: 66%; background-color: var(--color-warning, #E5A11A); }
.strength-strong { width: 100%; background-color: var(--color-primary, #218653); }

/* Email Masked Pill */
.auth-masked-email-pill {
    background: var(--color-primary-light, #EAF7EE);
    color: var(--color-primary-dark, #155C3A);
    border: 1px solid rgba(33, 134, 83, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-pill, 9999px);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Resend Timer Pill */
.auth-cooldown-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6C7B71);
}
