/* Auth Page Styles - Login & Register */

/* Passkey CTA Banner */
.passkey-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(126, 211, 33, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    max-width: 1136px; /* 1200px - 2*32px (container padding) */
    width: calc(100% - 4rem);
    margin: 20px auto 10px;
    animation: slideDown 0.5s ease-out;
}

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

.cta-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.cta-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.cta-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-dismiss {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
    line-height: 1;
}

.btn-dismiss:hover {
    color: var(--text-main);
}

@media (max-width: 600px) {
    .passkey-cta-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: calc(100% - 2rem);
        margin: 10px auto;
    }
    .cta-content {
        flex-direction: column;
    }
}

/* Warning text for validation */
.auth-warning-text {
    font-size: 0.8rem;
    color: #f39c12;
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-page-container {
    max-width: 400px; 
    margin: 60px auto; 
    padding: 0 15px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.auth-method-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.auth-method-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.auth-title {
    text-align: center; 
    margin-bottom: 30px;
    margin-top: 0;
    color: var(--text-main);
}

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

.auth-label {
    display: block; 
    margin-bottom: 5px; 
    font-weight: 500;
    color: var(--text-main);
}

.auth-input {
    width: 100%; 
    padding: 10px; 
    border: 1px solid var(--border-color); 
    border-radius: 5px;
    background: var(--bg-primary);
    color: var(--text-main);
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-btn {
    width: 100%; 
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.auth-divider-text {
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: lowercase;
    margin: 0;
}

.auth-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 600;
}

.auth-footer-text {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-link:hover {
    text-decoration: underline;
}

/* Auth Mobile Info Footer */
.auth-mobile-info {
    margin-top: 40px; 
    border-top: 1px solid #eee; 
    padding-top: 20px;
    display: none; /* Desktop hidden by default if not strictly mobile-only class */
}
.mobile-only { display: none; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .auth-mobile-info { display: block; }
    
    .auth-page-container {
        margin-top: 30px;
    }
}

.auth-info-title {
    text-align: center; 
    color: var(--text-muted); 
    font-weight: 500; 
    margin-bottom: 15px;
}

.auth-info-links {
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    align-items: center;
}

.auth-info-link {
    color: var(--text-main); 
    text-decoration: none;
}

/* Error Message */
.auth-error-message {
    display: none; 
    background: #fee2e2; 
    color: #b91c1c; 
    padding: 15px; 
    border-radius: 5px; 
    margin-bottom: 20px; 
    text-align: center;
}

/* Location Section */
.auth-location-section {
    margin-bottom: 20px;
}
.btn-location {
    width: 100%; 
    border-color: var(--primary); 
    color: var(--primary);
    background: transparent;
}
.btn-location:hover {
    background: rgba(37, 99, 235, 0.05);
}
.location-status {
    font-size: 0.85rem; 
    color: var(--text-muted); 
    margin-top: 5px; 
    text-align: center; 
    display: none;
}
