:root {
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-light: rgba(99, 102, 241, 0.1);
    
    --success: #10B981;
    --success-light: #D1FAE5;
    --error: #EF4444;
    --error-light: #FEE2E2;
    
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    
    --white: #FFFFFF;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top right, #EEF2FF, #F8FAFC);
    background-color: var(--slate-50);
    color: var(--slate-800);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Decorations (Blobs) */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 { top: -200px; right: -200px; }
.blob-2 { bottom: -200px; left: -200px; }

/* ===== Login Wrapper ===== */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 24px;
}

/* ===== Login Card ===== */
.login-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.login-card:hover {
    border-color: var(--primary);
}

.login-card h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--slate-900), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card .subtitle {
    font-size: 14px;
    color: var(--slate-500);
    margin-bottom: 40px;
}

/* ===== Form ===== */
.login-card form {
    text-align: left;
}

.login-card label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 8px;
    padding-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-card input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--slate-900);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.login-card input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Messages */
.messages {
    list-style: none;
    margin-bottom: 24px;
}

.messages li {
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.messages li.error {
    background: var(--error-light);
    color: #991B1B;
    border: 1px solid var(--error);
}

.messages li.success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid var(--success);
}

/* ===== Action Button ===== */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

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

/* ===== Footer Links ===== */
.auth-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-create, .link-back {
    color: var(--slate-500);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.link-create strong {
    color: var(--primary);
}

.link-create:hover, .link-back:hover {
    color: var(--slate-900);
}
