/* ===================================
   Authentication Pages Styles
   =================================== */

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 120px 20px 50px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* Auth Card */
.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    flex: 1;
}

.login-card {
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-large {
    margin-bottom: 1.5rem;
    text-align: center;
    display: inline-block;
}

.logo-text-brand-large {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    display: flex;
    align-items: baseline;
    gap: 0;
}

.logo-text-brand-large .logo-ida {
    color: #007072;
    font-weight: 900;
}

.logo-text-brand-large .logo-rides {
    color: #005456;
    font-weight: 900;
}

.logo-text-brand-large .logo-llc {
    font-size: 1rem;
    color: #D4A441;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: super;
}

.logo {
    background: white;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-flex;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-large .logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    font-size: 2rem;
}

.auth-header h1 {
    color: var(--idaho-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--idaho-blue);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--accent-primary);
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span a {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

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

.strength-fill.medium {
    width: 66%;
    background: #D4A441;
}

.strength-fill.strong {
    width: 100%;
    background: #007072;
}

.strength-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#strengthLabel {
    color: var(--text-primary);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.auth-footer p {
    color: var(--text-secondary);
}

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

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

/* Benefits Card */
.benefits-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.benefits-card h3 {
    color: var(--idaho-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.benefits-list i {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    margin-top: 3px;
}

.benefits-list strong {
    display: block;
    color: var(--idaho-blue);
    margin-bottom: 0.25rem;
}

.benefits-list p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Login Specific */
.login-container {
    align-items: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.forgot-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.quick-action-btn:hover {
    background: var(--accent-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, var(--idaho-blue), var(--idaho-mountain));
    color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.info-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.security-badges {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.badge i {
    font-size: 1.2rem;
}

.help-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.help-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.help-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-section li {
    margin-bottom: 0.75rem;
}

.help-section a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.help-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Success/Error Messages */
.message-box {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.message-box.show {
    display: block;
}

.message-box.success {
    background: #d4f5f5;
    color: #005456;
    border-left: 4px solid #007072;
}

.message-box.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.message-box i {
    margin-right: 8px;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        align-items: center;
    }

    .benefits-card,
    .info-card {
        position: static;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .form-section h3 {
        font-size: 1.1rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 100px 15px 30px;
    }

    .auth-card,
    .benefits-card,
    .info-card {
        padding: 1.5rem;
    }

    .logo-large .logo-icon {
        width: 60px;
        height: 60px;
    }
}
