/* 
  Auth Modal Styles - Aham Graham
  Premium Glassmorphism & Theme Aware
*/

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 26, 0.9);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    width: 100%;
    max-width: 440px;
    background: rgba(15, 15, 48, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white;
}

.auth-overlay.active .auth-modal {
    transform: translateY(0);
}

/* Light Theme */
html.light-theme .auth-overlay {
    background: rgba(243, 238, 253, 0.9);
}

html.light-theme .auth-modal {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    color: #111827;
}

html.light-theme .auth-logo {
    filter: brightness(0);
}

.auth-close {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.auth-close:hover {
    opacity: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 48px;
    margin: 0 auto 16px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    opacity: 0.7;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 32px;
}

html.light-theme .auth-tabs {
    background: rgba(0, 0, 0, 0.05);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #3b82f6;
    color: white;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.auth-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

html.light-theme .auth-input {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111827;
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

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

/* Social */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    opacity: 0.3;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
}

.auth-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

html.light-theme .social-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111827;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

html.light-theme .social-btn:hover {
    background: #f9fafb;
}

.social-icon {
    width: 20px;
    height: 20px;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: -10px;
    display: none;
}

.success-message {
    color: #22c55e;
    font-size: 14px;
    text-align: center;
    display: none;
}
