:root {
    --accent:     #e8a020;
    --bg:         #f4f6f9;
    --blue-dark:  #0d2d4e;
    --blue-mid:   #1a4a7a;
    --blue-light: #2e7ab8;
    --border:     #dde2ea;
    --muted:      #5a6a7e;
    --success:    #1e7d46;
    --surface:    #ffffff;
    --text:       #1a2535;
    --radius:     8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.tp-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(13, 45, 78, 0.18);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.tp-card h1 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--blue-dark);
}

.tp-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--muted);
}

.tp-notice {
    background: #eef4fa;
    border: 1px solid var(--border);
    color: var(--blue-mid);
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 18px;
}

.tp-error {
    background: #fdf1ec;
    border: 1px solid #f0c9b3;
    color: #8b3a2a;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 18px;
}

.tp-success {
    background: #eaf6ee;
    border: 1px solid #bfe3cb;
    color: var(--success);
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(46, 122, 184, 0.18);
}

button, .tp-btn {
    width: 100%;
    padding: 11px;
    background: var(--blue-mid);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

button:hover, .tp-btn:hover {
    background: var(--blue-dark);
}

.tp-btn-accent {
    background: var(--accent);
    color: var(--blue-dark);
}

.tp-btn-accent:hover {
    background: #d38f14;
}

.tp-link {
    color: var(--blue-light);
    text-decoration: none;
    font-size: 13px;
}

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

.tp-footer-link {
    text-align: center;
    margin-top: 16px;
}

/* Admin table */
.tp-admin-wrap {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 24px;
}

table.tp-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

table.tp-table th, table.tp-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

table.tp-table th {
    background: var(--blue-dark);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tp-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--border);
}

.tp-tag-admin {
    background: rgba(232, 160, 32, 0.15);
    color: #8a5c0d;
    border-color: rgba(232, 160, 32, 0.4);
}

.tp-tag-pending {
    background: rgba(139, 58, 42, 0.1);
    color: #8b3a2a;
    border-color: rgba(139, 58, 42, 0.3);
}
