/* Innloggingskort — XxxNorway (Nordlys / Aurora tema) */
/* Alle farger kun under body.auth-site — ingen lekkasje til andre faner */

body.auth-site {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 30% 40%, #032a1e 0%, #040e0c 60%);
    color: #b8f0d8;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Layout ──────────────────────────────────────────────────── */
.sc-auth-layout {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.sc-auth-col-left,
.sc-auth-col-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.sc-auth-col-right {
    padding-bottom: 1rem;
}

/* ── Overskrift ──────────────────────────────────────────────── */
.auth-header { text-align: center; margin-bottom: 0.5rem; }

.auth-script {
    font-family: "Great Vibes", cursive;
    font-size: 2.6rem;
    font-weight: 400;
    color: #00d9a3;
    text-align: center;
    margin: 0 0 0.1rem;
    line-height: 1;
}

.auth-tagline {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(0, 217, 163, 0.55);
    text-align: center;
    margin: 0;
    text-transform: uppercase;
}

/* ── Kort ────────────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 22rem;
    border: 1px solid rgba(0, 217, 163, 0.3);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    background: rgba(4, 20, 14, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 10;
}

.auth-brand { text-align: center; margin-bottom: 0.75rem; }
.auth-brand-name { font-size: 1.1rem; font-weight: 800; color: #b8f0d8; }
.auth-brand-tag  { font-size: 0.78rem; color: rgba(0, 217, 163, 0.5); margin-top: 0.15rem; }

/* ── Feil ────────────────────────────────────────────────────── */
.auth-err {
    border: 1px solid #c06060;
    color: #f0a0a0;
    border-radius: 0.35rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    margin: 0 0 0.7rem;
}

/* ── Skjemafelt ──────────────────────────────────────────────── */
.auth-card form { margin: 0; }
.auth-field { margin: 0 0 0.5rem; }

.auth-field input {
    width: 100%;
    height: 2.2rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(0, 217, 163, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    color: #d8f7ed;
    font-size: 0.88rem;
    outline: none;
    color-scheme: dark;
    transition: border-color 0.2s;
}

.auth-field input::placeholder { color: rgba(255, 255, 255, 0.3); }
.auth-field input:focus {
    border-color: #00d9a3;
    box-shadow: 0 0 0 1px rgba(0, 217, 163, 0.35);
}

/* Autofill */
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus,
.auth-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #040e0c inset !important;
    box-shadow: 0 0 0 1000px #040e0c inset !important;
    -webkit-text-fill-color: #00d9a3 !important;
    caret-color: #00d9a3;
    border-color: rgba(0, 217, 163, 0.35);
    transition: background-color 99999s, color 99999s;
}
.auth-field input:autofill,
.auth-field input:autofill:hover,
.auth-field input:autofill:focus {
    box-shadow: 0 0 0 1000px #040e0c inset !important;
    -webkit-text-fill-color: #00d9a3 !important;
    caret-color: #00d9a3;
}

/* Passord-øye */
.auth-pw { position: relative; }
.auth-pw input { padding-right: 2rem; }
.auth-eye {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    padding: 0;
    color: rgba(0, 217, 163, 0.45);
    cursor: pointer;
    line-height: 0;
}
.auth-eye svg { width: 15px; height: 15px; }

/* ── Husk meg + glemt passord ────────────────────────────────── */
.auth-opts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.45rem 0 0.85rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
}
.auth-opts label { display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.auth-opts input { accent-color: #00d9a3; width: 0.82rem; height: 0.82rem; }
.auth-opts a { color: rgba(0, 217, 163, 0.65); text-decoration: none; }
.auth-opts a:hover { color: #00d9a3; }

/* ── hCaptcha ────────────────────────────────────────────────── */
.auth-card .h-captcha {
    margin: 0 0 0.6rem;
    transform: scale(0.8);
    transform-origin: left top;
    height: 60px;
}

/* ── Knapper ─────────────────────────────────────────────────── */
.auth-btns {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0 1.25rem;
}
.auth-btns button,
.auth-btns a {
    flex: 1;
    height: 2.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btns button[formaction="/login"] {
    background: rgba(0, 179, 134, 0.15);
    color: #00d9a3;
    border: 1px solid rgba(0, 217, 163, 0.5);
}
.auth-btns button[formaction="/login"]:hover {
    background: rgba(0, 217, 163, 0.22);
}

.auth-btns button[formaction="/register"] {
    background: transparent;
    color: rgba(0, 217, 163, 0.75);
    border: 1px solid rgba(0, 217, 163, 0.25);
}
.auth-btns button[formaction="/register"]:hover {
    background: rgba(0, 217, 163, 0.08);
}

/* ── Liten juridisk tekst ────────────────────────────────────── */
.auth-legal {
    margin: 0 0 0.75rem;
    font-size: 0.61rem;
    line-height: 1.35;
    text-align: center;
    color: rgba(0, 217, 163, 0.4);
}
.auth-foot {
    text-align: center;
    font-size: 0.61rem;
    line-height: 1.55;
    color: rgba(0, 217, 163, 0.45);
}
.auth-foot a {
    color: rgba(0, 217, 163, 0.6);
    text-decoration: none;
}
.auth-foot a:hover { color: #00d9a3; }

/* ── Partnere nedre ──────────────────────────────────────────── */
.auth-partners,
.sc-partners-block {
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.auth-partners-label,
.sc-partners-label { display: none; }

.auth-partners-list,
.sc-partners-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.auth-partner-row,
.sc-partner-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.auth-partner-row:not(:last-child)::after,
.sc-partner-row:not(:last-child)::after { display: none; }

.auth-partner-name,
.sc-partner-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00d9a3;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}
a.auth-partner-name:hover,
a.sc-partner-name:hover { opacity: 0.75; }

.auth-partner-desc,
.sc-partner-desc {
    font-size: 0.55rem;
    color: rgba(0, 217, 163, 0.45);
    line-height: 1.3;
}

@media (max-width: 540px) {
    .auth-partners-list,
    .sc-partners-list { flex-wrap: wrap; gap: 1rem; }
}
