/**
 * Login & Authentication Stylesheet
 * Facebook Ads Dashboard - Multi User System
 */

/* Auth Wrapper */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

/* Auth Card */
.auth-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-color);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.auth-body {
    padding: 32px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.auth-form .form-control {
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--border-color);
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
}

.password-toggle:hover {
    color: var(--text-color);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me input {
    cursor: pointer;
}

.remember-me label {
    cursor: pointer;
    user-select: none;
    color: var(--text-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.auth-footer {
    padding: 20px 32px;
    text-align: center;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert in Auth */
.auth-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert svg {
    flex-shrink: 0;
}

.auth-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading State */
.auth-loading {
    position: relative;
}

.auth-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
}

/* Social Login */
.social-login {
    display: grid;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: rgba(24, 119, 242, 0.05);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 15px;
    }
    
    .auth-header {
        padding: 24px 24px 20px;
    }
    
    .auth-body {
        padding: 24px;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
