body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f5f9;
    color: #222;
    margin: 0;
    padding: 0;
}
.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #0f264f 0%, #2c4ee4 55%, #f3f5f9 100%);
}
.card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(16, 50, 131, 0.18);
    box-shadow: 0 18px 40px rgba(7, 20, 40, 0.08);
    padding: 28px;
    box-sizing: border-box;
}
.admin-card {
    max-width: 980px;
}
.login-card {
    max-width: 500px;
}
h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.02em;
    color: #0f264f;
}
.page-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 24px;
    color: #12296e;
}
.brand-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}
.brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e5cff, #1639c8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .02em;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}
.brand-tagline {
    margin: 6px 0 0;
    color: #556575;
    font-size: 14px;
}
.subtitle {
    margin: 0 0 20px;
    color: #556575;
}
.section {
    margin: 20px 0;
}
.pledge-text {
    background: #f7f9ff;
    border: 1px solid #e3e9ff;
    padding: 18px;
    border-radius: 12px;
    color: #334158;
    line-height: 1.7;
}
label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}
input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5dbe8;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 15px;
}
textarea {
    resize: vertical;
}
.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary { background: #2354ff; color: #fff; }
.btn-secondary { background: #f5f8ff; color: #2354ff; border: 1px solid #c7d7ff; }
.btn-success { background: #0c8a5b; color: #fff; }
.btn-warning { background: #f9a825; color: #fff; }
.btn-danger { background: #d32f2f; color: #fff; }
.btn-small { padding: 8px 14px; font-size: 13px; margin-bottom: 4px; }
.alert {
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    line-height: 1.6;
}
.alert-success { background: #e8f7ef; color: #1f6c4f; }
.alert-error { background: #fde7e6; color: #8e1f19; }
.alert-info { background: #eef5ff; color: #2f517f; }
.credential-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}
.code-box {
    background: #f7f7fd;
    border: 1px dashed #a3a9c9;
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.7;
}
.login-form {
    margin-top: 18px;
}
.key-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.key-row input {
    flex: 1;
}
.link-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.admin-login-form, .admin-form {
    margin-top: 18px;
}
.admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.admin-table th, .admin-table td {
    padding: 12px 10px;
    border: 1px solid #e5e9f0;
    text-align: right;
    vertical-align: top;
}
.admin-table th {
    background: #f8faff;
}
.inline-form {
    display: inline-block;
    margin: 0 2px;
}
.footer-note {
    margin-top: 18px;
    color: #5b6779;
}
.footer-note a {
    color: #2675ff;
    text-decoration: none;
}
@media (max-width: 780px) {
    .credential-row { flex-direction: column; align-items: stretch; }
    .admin-actions { justify-content: center; }
}
