* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    color: #111827;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 20px 18px 22px;
}

/* Tabs */
.tabs {
    display: flex;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 4px;
    margin-bottom: 16px;
}

.tab-button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tab-button.active {
    background: #111827;
    color: #ffffff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.tab-content.active {
    display: block;
}

h2 {
    margin: 0 0 12px;
    font-size: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #4b5563;
}

.input-group input {
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.input-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

button {
    width: 100%;
    padding: 10px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s ease, transform 0.05s ease;
}

button:active {
    transform: scale(0.98);
}

button:hover {
    background: #1d4ed8;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dashboard-header h2 {
    font-size: 18px;
    text-align: left;
    margin: 0;
}

.logout-btn {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    text-decoration: none;
    color: #374151;
    transition: background 0.15s ease;
}

.logout-btn:hover {
    background: #e5e7eb;
}

.dashboard-content p {
    margin: 4px 0;
    font-size: 14px;
}

.dashboard-content ul {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 14px;
}

.alert {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 13px;
    color: #1d4ed8;
}

/* Animations & responsive tweaks */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 640px) {
    .card {
        padding: 24px 24px 26px;
    }
}
