@font-face {
    font-family: "Roboto";
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/Roboto-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Roboto";
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/Roboto-Medium.ttf") format("truetype");
}
@font-face {
    font-family: "Roboto";
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/Roboto-Bold.ttf") format("truetype");
}

:root {
    --unic-navy: #01182D;
    --unic-cyan: #00C9FF;
    --unic-light: #F9F9F9;
    --unic-ink: #1a2733;
}

html { font-size: 16px; }

body {
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    color: var(--unic-ink);
    background: var(--unic-navy) url("/img/bg.jpg") center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Header ---- */
.unic-header {
    background-color: var(--unic-navy);
    border-bottom: 3px solid var(--unic-cyan);
}

/* Høyere topplinje med stor logo. */
.unic-header .navbar { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.unic-header .navbar-brand img { height: 84px; }
.unic-header .navbar-toggler { border-color: rgba(0, 201, 255, .5); }
.unic-header .navbar-toggler-icon { filter: invert(1); }

.unic-nav .nav-link {
    color: var(--unic-light);
    font-weight: 500;
    border-radius: 8px;
    padding: .4rem .9rem;
}

.unic-nav .nav-link:hover { background-color: rgba(0, 201, 255, .15); color: #fff; }
.unic-nav .nav-link.active { background-color: var(--unic-cyan); color: var(--unic-navy); }

/* ---- Språkvelger (flagg) ---- */
.lang-switch { display: flex; align-items: center; gap: .4rem; }
.lang-switch a { line-height: 0; opacity: .45; border-radius: 3px; padding: 2px; }
.lang-switch a.active { opacity: 1; outline: 2px solid var(--unic-cyan); }
.lang-switch a:hover { opacity: 1; }
.lang-switch img { width: 26px; height: auto; display: block; }

/* ---- Main content card ---- */
main { flex: 1 0 auto; padding: 2.5rem 0; }

.unic-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    padding: 2rem 2.25rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Språkflaggene øverst til høyre i kortet, på linje med overskriften (samme padding som kortet). */
.unic-card > .lang-switch { position: absolute; top: 2rem; right: 2.25rem; }

.unic-card.wide { max-width: 820px; }

.unic-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--unic-navy);
    padding-right: 4.5rem; /* gjør plass til flaggene øverst til høyre */
}

.unic-lead { color: #50606e; font-size: .97rem; }

/* ---- Steps indicator ---- */
.unic-steps { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.unic-steps .step {
    flex: 1; text-align: center; font-size: .78rem; font-weight: 600;
    color: #9aa7b2; padding-bottom: .4rem; border-bottom: 3px solid #e4e9ee;
}
.unic-steps .step.active { color: var(--unic-navy); border-bottom-color: var(--unic-cyan); }
.unic-steps .step.done { color: var(--unic-cyan); border-bottom-color: var(--unic-cyan); }

/* ---- Buttons ---- */
.btn-unic {
    background-color: var(--unic-navy);
    color: var(--unic-cyan);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: .55rem 1.2rem;
}
.btn-unic:hover { background-color: var(--unic-cyan); color: var(--unic-navy); }
.btn-outline-unic {
    border: 1px solid var(--unic-navy); color: var(--unic-navy);
    background: transparent; border-radius: 8px; padding: .55rem 1.2rem; font-weight: 600;
}
.btn-outline-unic:hover { background: var(--unic-navy); color: #fff; }

.form-control:focus { border-color: var(--unic-cyan); box-shadow: 0 0 0 .2rem rgba(0, 201, 255, .25); }

/* Diagnose-signal: grønn label når SMS faktisk ble sendt. */
.label-sent { color: #1a7f37; font-weight: 600; }

.temp-password {
    font-family: "Consolas", monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--unic-navy);
    background: var(--unic-light);
    border: 1px dashed var(--unic-cyan);
    border-radius: 10px;
    padding: .9rem 1rem;
    text-align: center;
    user-select: all;
}

.lang-en { color: #6b7884; font-size: .85rem; }

/* ---- Footer ---- */
.unic-footer {
    flex-shrink: 0;
    background: rgba(1, 24, 45, .92);
    color: #c6d2dc;
    font-size: .85rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 201, 255, .3);
}
.unic-footer a { color: var(--unic-cyan); text-decoration: none; }
.unic-footer .tagline { color: var(--unic-cyan); font-weight: 600; }

/* ---- Session table (stop parallels) ---- */
.session-table th { color: var(--unic-navy); font-size: .82rem; text-transform: uppercase; }
.session-table td { font-size: .9rem; vertical-align: middle; }
