:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --accent: #e63946;
    --text-color: #f1f1f1;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --warning-red: #ff4d4d;
    --blodmaane: #b3122a;
    --fantasy-font: "IM Fell English SC", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 24px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.auth-card h1 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.field-label {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
}

button {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 18px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
    background-color: #d62839;
}

button:active {
    transform: scale(0.98);
}

.auth-fejl {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid var(--warning-red);
    color: var(--warning-red);
    font-size: 13px;
    font-weight: bold;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.auth-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #81c784;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
}

.auth-success a {
    color: #a5d6a7;
    font-weight: bold;
}

.auth-link-row {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-link-row a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.auth-link-row a:hover {
    text-decoration: underline;
}

/* "Husk mig"-afkrydsning under password */
.husk-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.husk-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Lille hjælpetekst under et felt */
.field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Samler boks og knap under hinanden (bruges på login-siden) */
.auth-wrap {
    width: 100%;
    max-width: 360px;
}

/* ---------- TBMB-udseende: mørk med blodmåne ---------- */

body.tbmb {
    background:
        radial-gradient(ellipse 80% 45% at 50% 0%, rgba(179, 18, 42, 0.22), transparent 70%),
        radial-gradient(ellipse 120% 60% at 50% 100%, rgba(0, 0, 0, 0.6), transparent 70%),
        var(--bg-color);
    background-attachment: fixed;
}

.tbmb-hoved {
    text-align: center;
    margin-bottom: 18px;
}

.tbmb-maerke {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
}

/* Den røde måne bag dragen */
.tbmb-maane {
    position: absolute;
    top: 14%;
    left: 18%;
    width: 64%;
    height: 64%;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #e8505f 0%, #b3122a 45%, #5c0714 85%);
    box-shadow:
        0 0 30px 6px rgba(179, 18, 42, 0.55),
        0 0 80px 20px rgba(179, 18, 42, 0.25);
    opacity: 0.85;
    animation: tbmb-puls 6s ease-in-out infinite;
}

.tbmb-drage {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

.tbmb-titel {
    font-family: var(--fantasy-font);
    font-size: 26px;
    line-height: 1.15;
    margin-top: 10px;
    color: #f3e6d8;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(179, 18, 42, 0.7), 0 2px 2px #000;
}

body.tbmb .auth-card {
    border-color: #4a1820;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(179, 18, 42, 0.15);
}

body.tbmb .auth-card h1 {
    font-family: var(--fantasy-font);
    font-weight: normal;
    font-size: 24px;
    color: #f3e6d8;
}

@keyframes tbmb-puls {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .tbmb-maane { animation: none; }
}

@media (max-width: 380px) {
    .tbmb-maerke { width: 100px; height: 100px; }
    .tbmb-titel  { font-size: 22px; }
}
