/* Auth Page Styles - Template Compatible */
/* Template uses authentication-wrapper which handles background */

/* Auth Hero Section - Professional, refined typography */
.auth-hero-section {
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.auth-hero-content {
    max-width: 520px;
    padding: 2.5rem 1.5rem 3rem;
    text-align: left;
}

.auth-hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 1rem;
}

.auth-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.auth-hero-title-accent {
    font-weight: 600;
    color: #2563eb;
}

.auth-hero-slogan-main {
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin: 0 0 2rem 0;
}

.auth-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
}

.auth-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.auth-stat-item-sep {
    padding-left: 1.5rem;
    border-left: 1px solid #cbd5e1;
}

.auth-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.auth-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Hero: Services & Locations blocks */
.auth-hero-services {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
}

.auth-services-tags span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
}

.auth-services-tags span:not(:last-child)::after {
    content: '·';
    margin-left: 0.5rem;
    margin-right: 0.25rem;
    color: #64748b;
    font-weight: 400;
}


.auth-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.auth-services-list li {
    font-size: 0.9375rem;
    color: #475569;
    padding-left: 1.25rem;
    position: relative;
}

.auth-services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
}


@media (max-width: 1200px) {
    .auth-hero-content {
        max-width: 420px;
        padding: 2rem 1rem;
    }
    .auth-hero-title {
        font-size: 2rem;
    }
    .auth-stat-item-sep {
        padding-left: 1.25rem;
    }
    .auth-stat-value {
        font-size: 1.25rem;
    }
}

/* Welcome title - same font as page */
.auth-welcome-title {
    font-family: inherit;
    font-weight: 600;
}

/* Ensure form-floating-outline placeholder is transparent (template CSS handles this) */
/* Template CSS already makes placeholder transparent for form-floating, but ensure it for form-floating-outline */
.form-floating.form-floating-outline > .form-control::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

/* Auth Tabs - Custom styling for login/register tabs */
.auth-tabs {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin: 1rem 0;
    padding: 3px;
    display: flex;
    gap: 2px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 5px;
    font-weight: 400;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.auth-tab:hover {
    color: #1e293b;
    background: rgba(59, 130, 246, 0.05);
}

.auth-tab.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
    font-weight: 500;
}

/* Auth Tab Content */
.auth-tab-content {
    display: none;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab-content.active {
    display: block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation messages */
.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
    font-weight: 500;
    width: 100%;
}

/* Ensure error message doesn't break layout for password toggle */
.form-password-toggle {
    position: relative;
}

/* Error message is now outside form-password-toggle, so it doesn't affect the border */
.form-password-toggle + .error-message,
.form-password-toggle ~ .error-message {
    margin-top: 8px;
    padding-left: 12px;
    display: block;
    width: 100%;
    clear: both;
}

/* Password invalid: same border as other fields (template .form-control.is-invalid) */
.form-password-toggle .input-group-merge .form-control.is-invalid {
    border-color: var(--bs-form-invalid-border-color, #dc3545) !important;
}

.form-password-toggle .input-group-merge:has(.is-invalid) .input-group-text {
    border-color: var(--bs-form-invalid-border-color, #dc3545) !important;
}

.form-password-toggle .form-floating.form-floating-outline {
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-tabs {
        margin: 1rem 0;
        border-radius: 10px;
    }
    
    .auth-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-tabs {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .auth-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}
