/* ═══════════════════════════════════════════════════════════════════════════
   auth.css — Echo Line Auth Pages (Login & Register - Clean Bright Theme)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg:       #f8fafc;
    --bg-card:  #ffffff;
    --border:   #e2e8f0;
    --border-2: #f1f5f9;
    --primary:  #6366f1;
    --primary-2:#4f46e5;
    --accent:   #0284c7;
    --text:     #0f172a;
    --text-2:   #475569;
    --text-3:   #64748b;
    --error:    #e11d48;
    --success:  #059669;
    --input-bg: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}

/* Background glows */
.auth-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.auth-glow {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.12;
    animation: pulse 8s ease-in-out infinite;
}
.auth-glow-1 { width: 600px; height: 600px; background: #6366f1; top: -200px; left: -200px; }
.auth-glow-2 { width: 400px; height: 400px; background: #38bdf8; bottom: -100px; right: -100px; animation-delay: 3s; }
@keyframes pulse { 0%,100%{opacity:.12;} 50%{opacity:.2;} }

/* Card */
.auth-wrapper {
    position: relative; z-index: 1;
    width: 100%; max-width: 460px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    animation: slideUp 0.5s ease both;
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Logo */
.auth-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    font-weight: 800; font-size: 1.4rem; color: var(--text);
    margin-bottom: 32px; justify-content: center;
}
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #6366f1, #0284c7);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
}
.logo-accent { color: var(--primary); }

/* Headings */
.auth-title {
    font-size: 1.65rem; font-weight: 800;
    letter-spacing: -0.5px; margin-bottom: 6px;
    text-align: center;
    color: var(--text);
}
.auth-subtitle {
    color: var(--text-2); font-size: 0.92rem;
    text-align: center; margin-bottom: 28px;
}

/* Alerts */
.auth-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 10px;
    font-size: 0.875rem; font-weight: 600;
    margin-bottom: 20px;
}
.auth-alert-error   { background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48; }
.auth-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.auth-alert a { color: inherit; font-weight: 700; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.84rem; font-weight: 700;
    color: var(--text); letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    display: flex; align-items: center;
}
.input-icon {
    position: absolute; left: 14px;
    color: var(--text-3); pointer-events: none;
    flex-shrink: 0;
}
.input-wrapper input {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 44px 12px 44px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.input-wrapper input::placeholder { color: #94a3b8; }

.eye-btn {
    position: absolute; right: 12px;
    background: none; border: none; cursor: pointer;
    color: var(--text-3); padding: 4px;
    display: flex; align-items: center;
    transition: color 0.2s;
}
.eye-btn:hover { color: var(--text); }

.input-hint {
    font-size: 0.76rem; color: var(--text-3);
}

/* Terms checkbox */
.terms-row {
    display: flex; align-items: flex-start; gap: 12px;
    cursor: pointer;
    font-size: 0.82rem; color: var(--text-2);
    line-height: 1.5;
    user-select: none;
}
.terms-row input[type="checkbox"] { display: none; }
.checkmark {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 5px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.terms-row input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}
.terms-row input:checked + .checkmark::after {
    content: '';
    display: block;
    width: 5px; height: 9px;
    border: 2px solid white;
    border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.terms-row a { color: var(--primary); text-decoration: none; font-weight: 600; }
.terms-row a:hover { text-decoration: underline; }

/* Submit button */
.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff !important; border: none; border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem; font-weight: 700;
    padding: 14px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(99,102,241,0.35);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    margin-top: 4px;
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.45); }
.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Switch link */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-2);
}
.auth-switch a {
    color: var(--primary);
    text-decoration: none; font-weight: 700;
}
.auth-switch a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 480px) {
    .auth-card { padding: 36px 24px; }
}
