/* 07-login.css - Loginpagina, gebruikerszoek, codes en sessionhint
   Onderdeel van de AperioLibrum-stylesheet. Alle 13 bestanden laden in deze
   volgorde via templates/_stylesheets.html: de volgorde is de cascade, dus niet
   herschikken en geen bestand hernoemen zonder de linktemplate mee te nemen. */
/* ── Login page ── */
.hero-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: radial-gradient(600px 300px at 15% 20%, rgba(45, 90, 77, 0.35), transparent), radial-gradient(700px 350px at 85% 10%, rgba(45, 90, 77, 0.3), transparent), linear-gradient(180deg, var(--bg-main) 0%, var(--home-surface) 100%);
    min-height: calc(100vh - 65px);
}

.hero-card {
    background: var(--hero-card-bg);
    padding: 40px;
    border-radius: 14px;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.hero-card h2 {
    color: var(--primary);
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
}

.hero-card label {
    font-weight: 600;
    font-size: 14px;
    color: var(--label-text);
}

.hero-card input[type="text"],
.hero-card input[type="password"],
.hero-card input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    margin-top: 4px;
    margin-bottom: 8px;
    background: var(--input-bg);
}

.hero-card input[type="text"]:focus,
.hero-card input[type="password"]:focus
.hero-card input[type="email"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.hero-card input[type="submit"],
.hero-card button {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hero-card input[type="submit"] {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(8, 64, 102, 0.35);
}

.hero-card input[type="submit"]:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 64, 102, 0.45);
}

.hero-card button {
    background: var(--badge-bg);
    color: var(--label-text);
    margin-left: 8px;
}

.hero-card button:hover {
    background: var(--refresh-hover);
}

.hero-card button.primary {
    background: var(--primary);
    color: #fff;
    margin-left: 0;
}

.hero-card button.primary:hover {
    background: var(--primary-light);
}

/* ── User search dropdown (login) ── */
#usersSearchInput {
    margin-top: 12px;
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
}

#usersSearchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

#usersSearchMenu {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--dropdown-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

#usersSearchMenu li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s;
}

#usersSearchMenu li a:hover {
    background: var(--dropdown-hover);
}

#usersSearchMenu li.search-empty {
    padding: 12px 16px;
    color: var(--text-muted);
}

/* ── Code display (login) ── */
.code-display {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--primary);
    background: var(--code-bg);
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 18px 28px;
    display: inline-block;
    margin: 14px 0;
    font-family: 'Courier New', monospace;
}

#codeInput {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    width: 220px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    border: 2px solid var(--line);
    border-radius: 10px;
}

#codeInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* ── Session hint (login) ── */
#sessionHint {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-muted);
}

#sessionHint a {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

/* ── OTP-invoer (registratie) ── */
.otp-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 4px;
}

.otp-input__cell {
    position: relative;
    width: 46px;
    height: 56px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--input-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.otp-input__cell--focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.otp-input__char {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--text-main);
    pointer-events: none;
    user-select: none;
}

/* Specificiteit (0,3,0) nodig: .hero-card input[type="text"] is (0,2,1) en zou
   anders breedte/padding/rand/achtergrond van de onzichtbare input overnemen. */
.hero-card .otp-input .otp-input__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    text-align: center;
    font-size: 24px;
    color: transparent;
    caret-color: transparent;
}

.hero-card .otp-input .otp-input__input:focus {
    border: 0;
    box-shadow: none;
}

.otp-try-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

