* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

.card {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    margin: 24px;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card h1 {
    font-size: 1.4rem;
    margin: 0 0 4px;
}

.card .subtitle {
    color: #64748b;
    margin: 0 0 24px;
    font-size: 0.9rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 14px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

button, .btn {
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    padding: 11px 16px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .btn:hover { background: #4338ca; }

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-secondary:hover { background: #cbd5e1; }

.footer-link {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-link a { color: #4f46e5; text-decoration: none; }

.errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.errors ul { margin: 0; padding-left: 18px; }

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef2ff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.user-badge .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.user-badge .name { font-weight: 600; font-size: 0.9rem; }
.user-badge .email { font-size: 0.8rem; color: #64748b; }

.links { margin-top: 8px; }
.links a { display: block; margin: 8px 0; font-size: 0.9rem; }
