/* Innloggingskort + Partnere (2-kolonne vannrett) — XxxNorway (Nordlys tema) */
:root {
    --auth-bg: #040e0c;
    --auth-card: #070f0c;
    --auth-line: #00d9a3;
    --auth-text: #b8f0d8;
    --auth-dim: rgba(0, 217, 163, 0.55);
}

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

.auth-page,
.sc-static-footer {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    position: relative;
    z-index: 2;
}

/* Centered Layout */
.sc-auth-layout {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .sc-auth-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

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

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

@media (min-width: 768px) {
    .sc-auth-col-right {
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        width: 260px;
        margin-top: 0;
    }
}

/* Eier (innlogget) — kun partners-kolonnen, ingen innloggingskort */
.sc-auth-layout-solo {
    display: flex !important;
    grid-template-columns: none !important;
    max-width: 21rem;
}

.sc-auth-layout-solo .sc-auth-col-right {
    margin-top: 0 !important;
}

/* Header inside Auth Card */
.auth-header {
    text-align: center;
    margin-bottom: 0.6rem;
}

.auth-script {
    font-family: "Great Vibes", cursive;
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--auth-line);
    text-align: center;
    margin: 0 0 0.15rem;
    line-height: 1;
}

.auth-tagline {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--auth-dim);
    text-align: center;
    margin: 0;
}

.md-login-crown {
    display: block;
    margin: 0 auto -0.2rem auto;
    width: 100px;
    height: auto;
    position: relative;
    z-index: 20;
    pointer-events: none;
    user-select: none;
}

.md-login-figur {
    position: absolute;
    bottom: 0;
    height: 65vh;
    max-height: 580px;
    width: auto;
    max-width: 26vw;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}
.md-login-figur--venstre {
    right: 100%;
    margin-right: 1.5rem;
    object-position: right bottom;
}
.md-login-figur--hoyre {
    left: 100%;
    margin-left: 1.5rem;
    object-position: right bottom;
    transform: scaleX(-1);
}
@media (max-width: 900px) {
    .md-login-figur { display: none; }
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 21rem;
    border: 3px solid var(--auth-line);
    border-radius: 0.85rem;
    padding: 1.25rem 1.15rem 1rem;
    background: var(--auth-card);
    box-shadow: none;
}

.auth-brand { text-align: center; margin-bottom: 0.85rem; }
.auth-brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--auth-text); }
.auth-brand-tag { font-size: 0.8rem; color: var(--auth-dim); margin-top: 0.2rem; }

.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;
}

.auth-card form { margin: 0; }

.auth-field { margin: 0 0 0.55rem; }

.auth-field input {
    width: 100%;
    height: 2.1rem;
    padding: 0 0.6rem;
    border: 1px solid var(--auth-line);
    border-radius: 0.4rem;
    background: var(--auth-input-bg, rgba(0, 0, 0, 0.35));
    color: var(--auth-text);
    font-size: 0.86rem;
    outline: none;
    color-scheme: dark;
}

.auth-field input::placeholder {
    color: var(--auth-dim);
    opacity: 0.75;
}

.auth-field input:focus { box-shadow: 0 0 0 1px var(--auth-line); }

/* Nettleser-autofill — samme mørke felt som e-post/passord */
.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 var(--auth-input-bg, rgba(0, 0, 0, 0.35)) inset !important;
    box-shadow: 0 0 0 1000px var(--auth-input-bg, rgba(0, 0, 0, 0.35)) inset !important;
    -webkit-text-fill-color: var(--auth-text) !important;
    caret-color: var(--auth-text);
    border-color: var(--auth-line);
    transition: background-color 99999s ease-out, color 99999s ease-out;
}

.auth-field input:autofill,
.auth-field input:autofill:hover,
.auth-field input:autofill:focus {
    box-shadow: 0 0 0 1000px var(--auth-input-bg, rgba(0, 0, 0, 0.35)) inset !important;
    -webkit-text-fill-color: var(--auth-text) !important;
    caret-color: var(--auth-text);
}

.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: var(--auth-dim);
    cursor: pointer;
    line-height: 0;
}
.auth-eye svg { width: 15px; height: 15px; }

.auth-opts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.2rem 0 0.7rem;
    font-size: 0.72rem;
    color: var(--auth-line);
}

.auth-opts label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.auth-opts input { accent-color: var(--auth-line); width: 0.85rem; height: 0.85rem; }

.auth-opts a {
    color: var(--auth-line);
    text-decoration: none;
}

.auth-card .h-captcha { margin: 0 0 0.65rem; transform: scale(0.82); transform-origin: left top; height: 62px; }

.auth-btns {
    display: flex;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
}

.auth-btns button,
.auth-btns a {
    flex: 1;
    height: 1.9rem;
    border: 1px solid var(--auth-line);
    border-radius: 0.4rem;
    background: transparent;
    color: var(--auth-line);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
}

.auth-btns button:hover,
.auth-btns a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.auth-legal {
    margin: 0 0 0.85rem;
    font-size: 0.62rem;
    line-height: 1.35;
    text-align: center;
    color: var(--auth-line);
}

.auth-foot {
    text-align: center;
    font-size: 0.62rem;
    line-height: 1.55;
    color: var(--auth-line);
}

.auth-foot a {
    color: var(--auth-line);
    text-decoration: none;
}

/* Partners Card — discreet & elegant */
.auth-partners,
.sc-partners-block {
    background: var(--auth-card);
    border: 3px solid var(--auth-line);
    border-radius: 0.85rem;
    padding: 1.25rem 1.15rem;
    width: 100%;
    max-width: 21rem;
    box-shadow: none;
}

.auth-partners-label,
.sc-partners-label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--auth-dim);
    margin-bottom: 0.85rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.5rem;
}

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

.auth-partner-row {
    gap: 0.12rem;
    margin-bottom: 0.85rem;
}
.auth-partner-row:last-child {
    margin-bottom: 0;
}

.auth-partner-name,
.sc-partner-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--auth-line);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}

a.auth-partner-name:hover,
a.sc-partner-name:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.auth-partner-desc,
.sc-partner-desc {
    font-size: 0.68rem;
    color: var(--auth-dim);
    line-height: 1.3;
}
