/* AI Recruiter Demo - Authentication Styles */

/* ====== AUTH CONTAINER ====== */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* ====== AUTH FORM ====== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.auth-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.auth-input::placeholder {
    color: #9ca3af;
}

/* ====== AUTH BUTTONS ====== */
.auth-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn-primary {
    background-color: #3b82f6;
    color: white;
}

.auth-btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
}

.auth-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.auth-btn-secondary:hover:not(:disabled) {
    background-color: #e5e7eb;
}

/* ====== OTP SECTION ====== */
.otp-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.otp-instruction {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    text-align: center;
}

/* ====== STATUS MESSAGES ====== */
.auth-status {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

.auth-status.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.auth-status.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ====== USER INFO SECTION ====== */
.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-email {
    font-weight: 500;
    color: #111827;
    font-size: 0.875rem;
}

.user-status {
    font-size: 0.75rem;
    color: #6b7280;
}

.logout-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.logout-btn:hover {
    background-color: #dc2626;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 480px) {
    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .auth-btn {
        padding: 0.875rem 1rem;
    }
}

/* ====== APP CONTAINER WHEN AUTHENTICATED ====== */
.app-container {
    /* Inherits existing styles from global.css */
    /* This class is just for show/hide functionality */
}

/* ====== LOADING STATES ====== */
.auth-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: auth-spin 1s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====== INTEGRATION WITH EXISTING STYLES ====== */
/* Ensure auth container doesn't interfere with main app styles */
.auth-container * {
    box-sizing: border-box;
}

/* Hide auth when app is visible and vice versa */
.auth-container[style*="display: none"] {
    display: none !important;
}

.app-container[style*="display: none"] {
    display: none !important;
}
