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

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --emerald: #059669;
    --emerald-hover: #047857;
    --emerald-light: #d1fae5;
    --amber: #d97706;
    --amber-hover: #b45309;
    --amber-light: #fef3c7;
    --rose: #e11d48;
    --rose-hover: #be123c;
    --rose-light: #ffe4e6;
    --indigo: #4f46e5;
    --indigo-hover: #4338ca;
    --indigo-light: #e0e7ff;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --bg-body: #f4f7fa;
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--slate-800);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Auth Screens (Login, Register, Forgot Password, Reset Password) */
body.auth-page {
    background: radial-gradient(circle at 15% 20%, #e0f2fe 0%, #f4f7fa 45%, #eef2ff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 16px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    padding: 36px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    width: 100%;
    max-width: 420px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 22px;
}

.auth-logo-wrap img {
    max-width: 210px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.06));
}

.auth-title {
    text-align: center;
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    text-align: center;
    margin: 0 0 24px 0;
    font-size: 13.5px;
    color: var(--slate-500);
    line-height: 1.5;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 13px;
    color: var(--slate-700);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--slate-900);
    background: var(--slate-50);
    transition: all 0.2s ease;
}

.auth-input-wrap input.has-toggle {
    padding-right: 44px;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.14);
}

.pw-toggle-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--slate-500);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
    margin: 0;
    transition: background 0.15s, color 0.15s;
}

.pw-toggle-btn:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

.auth-submit-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-submit-btn.emerald {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-hover) 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.auth-submit-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

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

.auth-alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.auth-alert.error {
    background-color: var(--rose-light);
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.auth-alert.success {
    background-color: var(--emerald-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.15s;
}

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

.auth-link.muted {
    color: var(--slate-500);
    font-weight: 500;
    font-size: 13px;
}

.auth-link.muted:hover {
    color: var(--slate-800);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 26px 20px;
        border-radius: 16px;
    }
    .auth-title {
        font-size: 20px;
    }
}
