/* Auth Page Styles */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

.auth-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 8px 24px var(--shadow);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
}

.auth-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 16px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    color: var(--accent-color);
}

.auth-tab.active {
    color: var(--accent-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.auth-body {
    padding: 30px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.social-login {
    margin-bottom: 30px;
}

.social-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn:hover {
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.social-btn img,
.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn-google {
    border-color: #db4437;
    color: #db4437;
}

.social-btn-google:hover {
    background: #db4437;
    color: white;
}

.social-btn-apple {
    border-color: #000000;
    color: #000000;
}

[data-theme="dark"] .social-btn-apple {
    border-color: #ffffff;
    color: #ffffff;
}

.social-btn-apple:hover {
    background: #000000;
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.country-code {
    width: 100px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.phone-input {
    flex: 1;
}

#recaptcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.verification-code-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.verification-code-input input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.verification-code-input input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding: 20px 30px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 14px;
}

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

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

/* Phone verification steps */
.phone-step {
    display: none;
}

.phone-step.active {
    display: block;
}

.back-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-container {
        margin: 20px auto;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-body {
        padding: 20px;
    }
    
    .verification-code-input input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}

