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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
}

.dashboard-card {
    max-width: 480px;
    text-align: center;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 28px;
}

.logo span {
    font-size: 1.9rem;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -1px;
}

/* Headings */
h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    outline: none;
}

.form-group input:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hint {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 10px;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

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

.btn-outline {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-outline:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* Link row */
.link-row {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: #6b7280;
}

.link-row a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.link-row a:hover {
    text-decoration: underline;
}

/* Dashboard welcome */
.welcome-banner {
    padding: 32px 20px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 28px;
}

.welcome-icon {
    width: 56px;
    height: 56px;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #15803d;
    margin: 0 auto 16px;
}

.welcome-name {
    font-size: 1.7rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.welcome-sub {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px;
    }
    .name-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
