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

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --success: #22c55e;
    --error: #ef4444;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 600px; margin: 0 auto; padding: 2rem 1rem; }
.hero { text-align: center; padding: 4rem 2rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--primary); }
.hero p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; }

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.card h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.subtitle { color: var(--text-secondary); margin-bottom: 2rem; }

.form { margin-top: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group small { display: block; margin-top: 0.25rem; color: var(--text-secondary); font-size: 0.875rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-hover); }
.btn-block { display: block; width: 100%; }
.button-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}
.message.show { display: block; }
.message.success { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid var(--success); }
.message.error { background: rgba(239,68,68,0.1); color: var(--error); border: 1px solid var(--error); }

.text-center { text-align: center; margin-top: 1.5rem; color: var(--text-secondary); }
.text-center a { color: var(--primary); text-decoration: none; font-weight: 500; cursor: pointer; }
.text-center a:hover { text-decoration: underline; }

.navbar {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    margin-bottom: 2rem;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar h2 { color: var(--primary); font-size: 1.5rem; }

.user-info { margin: 2rem 0; }
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: var(--text-secondary); }
.info-value { color: var(--text); }

hr { border: none; border-top: 2px solid var(--border); margin: 2rem 0; }

@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .card { padding: 1.5rem; }
    .button-group { flex-direction: column; }
    .btn { width: 100%; }
}

