/* 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;
}

/* 2-Column Horizontal Layout */
.sc-auth-layout {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .sc-auth-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
}

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

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

@media (min-width: 768px) {
    .sc-auth-col-right {
        margin-top: 3.4rem; /* Aligns partners card with login card under brand header */
    }
}

/* 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;
}

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

.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: rgba(0, 0, 0, 0.35);
    color: var(--auth-text);
    font-size: 0.86rem;
    outline: none;
}

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

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

.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 */
.sc-partners-block {
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: 0.85rem;
    padding: 1.25rem 1.15rem;
    width: 100%;
    max-width: 21rem;
}

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

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

.sc-partner-row {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.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.sc-partner-name:hover {
    opacity: 0.85;
    text-decoration: underline;
}

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