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

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--color-bg, #f4f5f7);
    color: #1a1a1a;
}

.auth-box {
    max-width: 380px;
    margin: 80px auto;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.auth-box h1 { font-size: 22px; margin-bottom: 4px; }
.auth-box .subtitle { color: #666; font-size: 13px; margin-bottom: 20px; }

label { display: block; margin-top: 14px; margin-bottom: 4px; font-size: 13px; font-weight: 600; }

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: var(--color-primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

button:hover { background: var(--color-primary-dark, #1d4ed8); }

.alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.auth-box p { margin-top: 16px; font-size: 13px; text-align: center; }
.auth-box a { color: var(--color-primary, #2563eb); text-decoration: none; }

.auth-divider { display: flex; align-items: center; text-align: center; margin: 18px 0 6px; color: #999; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid #e5e7eb; }
.auth-divider span { padding: 0 12px; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.btn-google:hover { background: #f9fafb; }

.topbar {
    background: var(--color-topbar-bg, #111827);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.logout-link { color: #f87171; text-decoration: none; font-size: 14px; }
.topbar a:not(.logout-link) { color: #93c5fd; text-decoration: none; font-size: 13px; }
.topbar strong { font-size: 15px; }

.content { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.content h1 { font-size: 24px; margin-bottom: 8px; }

.menu-list { list-style: none; margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.menu-list li { margin-bottom: 0; }
.menu-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-weight: 500;
    font-size: 14px;
    transition: box-shadow 0.15s, transform 0.1s;
}
.menu-list a:hover { background: #f4f5f7; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transform: translateY(-1px); }

@media (min-width: 640px) {
    .menu-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
    .menu-list { grid-template-columns: 1fr 1fr 1fr; }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-icon { font-size: 40px; margin-bottom: 12px; }
.modal-box h2 { font-size: 19px; margin-bottom: 10px; }
.modal-box p { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 22px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-primary {
    background: var(--color-primary, #2563eb); color: #fff; padding: 12px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 14px;
}
.btn-text {
    background: none; border: none; color: #888; font-size: 13px;
    padding: 8px; cursor: pointer;
}
.btn-text:hover { color: #444; }