
/* ==========================================================
   /ui/css/layout/ljh-login.css
   LJH – Login Page Layout
   ----------------------------------------------------------
   Ansvar:
   - Login-sidans bakgrund och typsnitt
   - Header ytterskal + layout (vänster, center, höger)
   - Login-kortets layout och stil
   - Inputs och knappar
   - Modal overlay och ruta
   ----------------------------------------------------------
   OBS: body-styling scopad till .ljh-login-page
   för att undvika påverkan på andra vyer
   ----------------------------------------------------------
   Version: 1.1 – header-ytterskal + logotyp tillagt
   Används av: /login_files/login_form.php
   Laddas via: head_loader.php (login-vy)
========================================================== */


/* ==========================================================
   LOGIN PAGE – Bakgrund
   Scopad till .ljh-login-page istället för body
========================================================== */

.ljh-login-page {
    background: radial-gradient(circle at top, #0f172a, #020617);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}


/* ==========================================================
   LOGIN HEADER – Ytterskal
   Ersätter gamla .ljh-header (assets/style/header.css),
   som inte längre laddas i UI-systemet.
========================================================== */

.ljh-login-header {
    width: 100%;
    background: rgba(15,23,42,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    z-index: 40;
}


/* ==========================================================
   LOGIN HEADER – Inre layout
========================================================== */

.ljh-login-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    max-width: var(--ljh-page-max, 1400px);
    margin: 0 auto;
    padding: 10px 24px;
}

.ljh-login-header-left {
    display: flex;
    align-items: center;
}

.ljh-login-header-right {
    margin-right: 20px;
    margin-left: auto;
}

.ljh-login-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 500;
    color: #cbd5e1;
    pointer-events: none;
}


/* ==========================================================
   LOGIN HEADER – Logotyp
   Gamla .header-hero fanns bara i assets/style/header.css
   (420×240px, byggd för publika sidan). Egen, mindre
   variant här – justera mått vid behov.
========================================================== */

.ljh-login-header-left .header-hero {
    width: 160px;
    height: 90px;
    background-image: url('/assets/pics/ljhwebb_logotype.png');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
}


/* ==========================================================
   LOGIN PAGE LAYOUT
========================================================== */

.ljh-login-wrap {
    min-height: calc(100vh - 16px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 16px;
}


/* ==========================================================
   LOGIN KORT
========================================================== */

.ljh-login-box {
    width: 100%;
    max-width: 340px;
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(30,41,59,0.95),
        rgba(15,23,42,0.95)
    );
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.08),
        0 30px 80px rgba(0,0,0,0.6);
    color: #e5e7eb;
}

.ljh-login-box h1 {
    margin: 0;
    font-size: 22px;
    text-align: center;
}

.ljh-login-box p {
    margin: 6px 0 20px;
    text-align: center;
    color: #cbd5e1;
}

.ljh-login-box label {
    display: block;
    font-size: 14px;
    margin-bottom: 14px;
}

.ljh-login-box input {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(2,6,23,0.9);
    color: #ffffff;
    font-size: 15px;
}

.ljh-login-box input::placeholder { color: rgba(255,255,255,0.5); }

.ljh-login-box input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(147,197,253,0.35);
}


/* ==========================================================
   KNAPPAR
========================================================== */

.ljh-login-btn {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.ljh-login-btn:hover { opacity: 0.9; }

.ljh-register-btn {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #e5e7eb;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ljh-register-btn:hover { background: rgba(255,255,255,0.06); }


/* ==========================================================
   MODAL
========================================================== */

.ljh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ljh-modal-overlay[hidden] { display: none !important; }

.ljh-modal {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    border-radius: 16px;
    background: #020617;
    color: #e5e7eb;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.ljh-modal h2 {
    margin: 0;
    font-size: 20px;
    text-align: center;
}

.ljh-modal p {
    margin: 6px 0 18px;
    text-align: center;
    color: #cbd5e1;
}

.ljh-modal label {
    display: block;
    margin-bottom: 14px;
}

.ljh-modal input {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(15,23,42,0.95);
    color: #ffffff;
}

.ljh-modal-close {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: transparent;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.ljh-modal-close:hover { opacity: 0.75; }

