* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
}

h1 {
    font-size: 20px;
    margin: 0 0 4px;
    text-align: center;
}

p.sub {
    color: #666;
    text-align: center;
    font-size: 13px;
    margin: 0 0 24px;
}

label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.field {
    margin-bottom: 16px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fafafa;
}

input:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
}

button.primary {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #0066cc;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

button.primary:hover { background: #0055aa; }
button.primary:disabled { background: #99c2e8; cursor: default; }

.msg {
    font-size: 13px;
    margin-top: 14px;
    text-align: center;
    min-height: 18px;
}

.msg.error { color: #cc3333; }
.msg.ok { color: #2f9e44; }

.links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

.links a {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
}

.links a:hover { text-decoration: underline; }

.toggle-mode {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 3px;
}

.toggle-mode button {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 5px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.toggle-mode button.active {
    background: white;
    color: #0066cc;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- admin --- */
.admin-wrap {
    max-width: 640px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.admin-header a {
    font-size: 13px;
    color: #0066cc;
    text-decoration: none;
}

table.testers {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13px;
}

table.testers th,
table.testers td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
}

table.testers th { color: #666; font-weight: 600; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.badge.registered { background: #e6f4ea; color: #2f9e44; }
.badge.pending { background: #fff4e5; color: #b8860b; }

.add-row {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.add-row input { flex: 1; }
.add-row button { width: auto; padding: 10px 16px; }

button.remove {
    border: none;
    background: transparent;
    color: #cc3333;
    cursor: pointer;
    font-size: 12px;
}
