:root {
    --navy: #1A4A7A;
    --gold: #f0a500;
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text: #1f2d3d;
    --muted: #6b7785;
    --error: #c0392b;
    --error-bg: #fdecea;
    --success: #1e7e44;
    --success-bg: #e8f6ee;
    --warn: #8a6100;
    --warn-bg: #fff6e0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.topbar {
    background: var(--navy);
    color: #fff;
}

.topbar-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.brand-zk {
    color: var(--gold);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-logout {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px 12px;
    border-radius: 4px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.12);
}

.container {
    max-width: 760px;
    margin: 32px auto;
    padding: 0 20px;
}

.card, .auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.auth-card {
    max-width: 420px;
    margin: 40px auto;
}

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

h1 {
    color: var(--navy);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.muted {
    color: var(--muted);
    margin-top: 0;
}

.link-decrypt {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.link-decrypt:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(26, 74, 122, 0.15);
}

.btn {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: #163e68;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: var(--warn-bg);
    color: var(--warn);
    border: 1px solid #ffe3a3;
}

.zk-notice {
    background: #eef4fb;
    border: 1px solid #cfe0f2;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--navy);
}

.zk-badge {
    display: inline-block;
    background: var(--gold);
    color: #3a2c00;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.92rem;
    min-height: 1px;
}

.status:empty {
    display: none;
}

.status-info {
    background: #eef4fb;
    color: var(--navy);
}

.status-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #b9e3c6;
}

.status-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #f5c6cb;
}

.footer {
    max-width: 760px;
    margin: 24px auto 40px;
    padding: 0 20px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}
