/* Authentication Pages Styles */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 0;
}

/* ===== AUTH CARD ===== */
.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    z-index: 1;
}

body.dark .auth-card {
    background: rgba(15, 23, 42, 0.95);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 400px;
    width: 100%;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #4A6CF7;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

body.dark .auth-logo {
    background: #6366f1;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.auth-logo svg {
    color: white;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

body.dark .auth-header h1 {
    color: #f1f5f9;
}

.auth-subtitle {
    color: var(--gray-600);
    font-size: 16px;
    margin: 0;
}

body.dark .auth-subtitle {
    color: var(--gray-400);
}

/* ===== AUTH FORM ===== */
.auth-form {
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

body.dark .form-group label {
    color: #e2e8f0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-800);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

body.dark .form-group input[type="text"],
body.dark .form-group input[type="email"],
body.dark .form-group input[type="password"] {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.form-group input:focus {
    outline: none;
    border-color: #4A6CF7;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.1);
    transform: translateY(-2px);
}

body.dark .form-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
}

body.dark .form-hint {
    color: var(--gray-400);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
}

body.dark .checkbox-label {
    color: #e2e8f0;
}

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

.checkbox-label a {
    color: #4A6CF7;
    text-decoration: none;
    font-weight: 600;
}

body.dark .checkbox-label a {
    color: #818cf8;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== MESSAGES ===== */
.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

body.dark .error-message {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

body.dark .success-message {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

/* ===== AUTH BUTTON ===== */
.btn-auth {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    background: #4A6CF7;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-auth:hover::before {
    width: 300px;
    height: 300px;
}

.btn-auth:hover {
    background: #3B5DE6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.auth-footer p {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0;
}

body.dark .auth-footer p {
    color: var(--gray-400);
}

.auth-footer a {
    color: #4A6CF7;
    text-decoration: none;
    font-weight: 600;
}

body.dark .auth-footer a {
    color: #818cf8;
}

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

/* ===== AUTH FEATURES ===== */
.auth-features {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

body.dark .auth-features {
    background: #1e293b;
}

.auth-features h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 32px;
}

body.dark .auth-features h2 {
    color: #f1f5f9;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

body.dark .feature-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.1);
    border-color: rgba(74, 108, 247, 0.2);
}

body.dark .feature-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

body.dark .feature-content h3 {
    color: #f1f5f9;
}

.feature-content h3::before {
    display: none;
}

.feature-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

body.dark .feature-content p {
    color: var(--gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-features {
        display: none;
    }
    
    .auth-card {
        min-height: 100vh;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .auth-logo {
        width: 64px;
        height: 64px;
    }
    
    .auth-logo svg {
        width: 36px;
        height: 36px;
    }
}

/* ===== GOOGLE OAUTH BUTTON ===== */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    margin-bottom: 20px;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

body.dark .btn-google {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.25);
    color: #f1f5f9;
}

body.dark .btn-google:hover {
    background: #263347;
    border-color: rgba(148, 163, 184, 0.4);
}

/* ===== DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

body.dark .auth-divider {
    color: var(--gray-400);
}

body.dark .auth-divider::before,
body.dark .auth-divider::after {
    background: rgba(255, 255, 255, 0.1);
}
