/* =============================================================================
   DINEOUT.PAGE - AUTH PAGE STYLES
   Used by: login.php, signup.php, forgot-password.php, reset-password.php
   ============================================================================= */

/* =============================================================================
   FONT IMPORT
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =============================================================================
   VARIABLES (dark theme - matches public.css)
   ============================================================================= */
:root {
    --primary: #E63946;
    --primary-dark: #d62839;
    --primary-light: #ff6b7a;
    --bg-dark: #0f0f14;
    --bg-darker: #0a0a0e;
    --bg-card: #16161d;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --success: #22c55e;
    --warning: #f59e0b;

    --gradient-primary: linear-gradient(135deg, #E63946 0%, #ff6b7a 100%);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(230,57,70,0.3);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =============================================================================
   AUTH CONTAINER
   ============================================================================= */
.login-container,
.auth-container {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* =============================================================================
   LOGO
   ============================================================================= */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    display: block;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.logo p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* =============================================================================
   FORMS
   ============================================================================= */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-dark);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* =============================================================================
   PASSWORD FIELD WITH TOGGLE
   ============================================================================= */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: var(--transition);
}

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

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

/* =============================================================================
   ALERTS
   ============================================================================= */
.alert {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    border: 1px solid;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-success.new-user {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* =============================================================================
   DIVIDER
   ============================================================================= */
.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

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

.divider span {
    padding: 0 16px;
}

/* =============================================================================
   FEATURES GRID (login/signup pages)
   ============================================================================= */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 12px;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* =============================================================================
   SWITCH AUTH (cross-link between login/signup — shown above fold)
   ============================================================================= */
.switch-auth {
    text-align: center;
    margin: 20px 0 0;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.switch-auth a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.switch-auth a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* =============================================================================
   AUTH LINKS
   ============================================================================= */
.auth-links {
    text-align: center;
    margin-top: 16px;
}

.auth-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary-light);
}

/* =============================================================================
   FOOTER TEXT
   ============================================================================= */
.footer-text {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-text a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* =============================================================================
   HELP TEXT
   ============================================================================= */
.help-text {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================================================
   EMAIL SENT / SUCCESS STATE
   ============================================================================= */
.email-sent {
    text-align: center;
    padding: 20px 0;
}

.email-sent .icon {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
}

.email-sent h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.email-sent p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.email-sent .resend {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 24px;
}

.email-sent .resend a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.email-sent .resend a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* =============================================================================
   SUCCESS STATE (for reset-password confirmation etc.)
   ============================================================================= */
.success-state {
    text-align: center;
    padding: 20px 0;
}

.success-state .icon {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
}

.success-state h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.success-state p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* =============================================================================
   BACK LINK
   ============================================================================= */
.back-link {
    text-align: center;
    margin-top: 24px;
}

.back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link a:hover {
    color: var(--text-primary);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 480px) {
    .login-container,
    .auth-container {
        padding: 32px 24px;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}