* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    margin: 0;
    background: #f5f6f8;
    color: #222;
}
header {
    background: #1f2d3d;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
header h1 { font-size: 18px; margin: 0; }
header a { color: #9fd3ff; text-decoration: none; }
header .btn-link {
    background: #2e7d32;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
}
main { padding: 20px; max-width: 1100px; margin: 0 auto; }
table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
th, td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 14px; }
th { background: #eef1f5; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #e0e7ff; color: #3730a3; }

body.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-box { background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); width: 320px; }
.auth-box h1 { text-align: center; font-size: 20px; margin-top: 0; }
.auth-box label { display: block; margin-bottom: 14px; font-size: 13px; color: #555; }
.auth-box input, .form-card input, .form-card select {
    width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px;
}
.auth-box button, .form-card button {
    width: 100%; padding: 10px; background: #1f2d3d; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer;
}
.error { color: #c62828; font-size: 13px; }

.form-card { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.1); max-width: 480px; }
.form-card label { display: block; margin-bottom: 14px; font-size: 13px; color: #555; }
