:root{
    --lf-teal:#10b8c4;
    --lf-teal-dark:#0796a3;
    --lf-navy:#12254b;
    --lf-text:#263553;
    --lf-muted:#73809a;
    --lf-border:#dfe6ef;
    --lf-bg:#f7fafc;
    --lf-white:#fff;
    --lf-danger:#b42318;
    --lf-success:#08766f;
    --lf-radius:12px;
    --lf-shadow:0 24px 70px rgba(18,37,75,.10)
}

*{
    box-sizing:border-box
}

html,
body{
    min-height:100%;
    margin:0;
    padding:0
}

body{
    background:var(--lf-bg);
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    color:var(--lf-text)
}

button,
input,
select,
textarea{
    font:inherit;
    box-sizing:border-box
}

/* =========================
   AUTH LAYOUT
========================= */

.lf-auth{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(320px,34%) minmax(0,66%);
    background:#fff
}

.lf-auth-brand{
    position:relative;
    overflow:hidden;
    padding:52px 48px 36px;
    background:linear-gradient(160deg,#087c8d 0%,#08b8c3 55%,#056b7c 100%);
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:space-between
}

.lf-auth-brand:before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 12% 15%,rgba(255,255,255,.16),transparent 28%),
        radial-gradient(circle at 90% 85%,rgba(0,0,0,.16),transparent 40%);
    pointer-events:none
}

.lf-auth-brand>*{
    position:relative;
    z-index:1
}

.lf-auth-brand-logo{
    display:block;
    width:62px;
    height:92px;
    object-fit:contain;
    object-position:center;
    filter:brightness(0) invert(1);
    margin-bottom:34px
}

.lf-auth-brand h1{
    font-size:42px;
    line-height:1.08;
    letter-spacing:-1.5px;
    margin:0 0 14px
}

.lf-auth-brand p{
    max-width:390px;
    font-size:16px;
    line-height:1.65;
    margin:0;
    color:rgba(255,255,255,.92)
}

.lf-auth-features{
    display:grid;
    gap:22px;
    margin-top:40px
}

.lf-auth-feature{
    display:flex;
    gap:13px;
    align-items:flex-start
}

.lf-auth-feature-icon{
    width:39px;
    height:39px;
    border:1px solid rgba(255,255,255,.30);
    border-radius:11px;
    background:rgba(255,255,255,.09);
    display:grid;
    place-items:center;
    flex:none
}

.lf-auth-feature strong{
    display:block;
    font-size:14px;
    margin-bottom:4px
}

.lf-auth-feature span{
    display:block;
    font-size:12.5px;
    line-height:1.5;
    color:rgba(255,255,255,.82)
}

.lf-auth-brand-footer{
    font-size:12px;
    color:rgba(255,255,255,.82);
    padding-top:30px
}

/* =========================
   RIGHT PANEL
========================= */

.lf-auth-panel{
    min-width:0;
    min-height:100vh;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding:50px 45px;
    background:#fff;
    overflow-y:auto
}

.lf-auth-box{
    width:100%;
    max-width:720px;
    padding:8px 12px 40px;
    margin:0 auto
}

/* =========================
   LOGOS
========================= */

.lf-auth-mobile-logo{
    display:block;
    width:62px;
    height:82px;
    object-fit:contain;
    margin:0 auto 24px
}

.lf-auth-hero-logo{
    width:70px;
    height:95px;
    object-fit:contain
}

.lf-auth-brand .lf-auth-logo-image{
    display:block;
    width:62px;
    height:92px;
    object-fit:contain;
    filter:brightness(0) invert(1)
}

/* =========================
   HEADINGS
========================= */

.lf-auth-title{
    text-align:center;
    color:var(--lf-navy);
    font-size:30px;
    line-height:1.2;
    letter-spacing:-.8px;
    margin:0 0 8px
}

.lf-auth-subtitle{
    text-align:center;
    color:var(--lf-muted);
    font-size:14px;
    line-height:1.5;
    margin:0 0 30px
}

/* =========================
   TOP BAR
========================= */

.lf-auth-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px
}

.lf-auth-topbar img{
    width:38px;
    height:50px;
    object-fit:contain
}

.lf-auth-topbar p{
    margin:0;
    color:var(--lf-muted);
    font-size:12px
}

.lf-auth-topbar a{
    font-size:12px
}

/* =========================
   FORM FIELDS
========================= */

.lf-auth-field{
    min-width:0;
    margin-bottom:16px
}

.lf-auth-field label{
    display:block;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
    color:var(--lf-navy);
    margin-bottom:7px
}

.lf-auth-field input,
.lf-auth-field select,
.lf-auth-field textarea{
    display:block;
    width:100%;
    max-width:100%;
    height:46px;
    border:1px solid var(--lf-border);
    border-radius:9px;
    background:#fff;
    color:var(--lf-text);
    padding:0 13px;
    font-size:13px;
    outline:none;
    transition:border-color .18s,box-shadow .18s
}

.lf-auth-field input::placeholder,
.lf-auth-field textarea::placeholder{
    color:#a1adbd
}

.lf-auth-field textarea{
    height:100px;
    min-height:100px;
    padding:12px 13px;
    resize:vertical;
    line-height:1.5
}

.lf-auth-field input:focus,
.lf-auth-field select:focus,
.lf-auth-field textarea:focus{
    border-color:var(--lf-teal);
    box-shadow:0 0 0 3px rgba(16,184,196,.11)
}

/* =========================
   TWO COLUMN FORM
========================= */

.lf-auth-grid{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:18px;
    row-gap:0;
    align-items:start
}

.lf-auth-grid > *{
    min-width:0
}

.lf-auth-full{
    grid-column:1/-1
}

/* =========================
   SECTION HEADINGS
========================= */

.lf-auth-section-title{
    color:var(--lf-navy);
    font-size:15px;
    font-weight:800;
    line-height:1.3;
    margin:28px 0 13px;
    padding-bottom:8px;
    border-bottom:1px solid #edf1f5
}

/* =========================
   ACCOUNT TYPE
========================= */

.lf-auth-type-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px;
    margin-bottom:20px
}

.lf-auth-type{
    position:relative;
    min-width:0;
    border:1px solid var(--lf-border);
    border-radius:11px;
    padding:15px;
    cursor:pointer;
    background:#fff;
    transition:border-color .18s,box-shadow .18s,background .18s
}

.lf-auth-type input{
    position:absolute;
    opacity:0;
    pointer-events:none
}

.lf-auth-type strong{
    display:block;
    color:var(--lf-navy);
    font-size:13px;
    line-height:1.35;
    margin-bottom:4px
}

.lf-auth-type span{
    display:block;
    color:var(--lf-muted);
    font-size:11px;
    line-height:1.45
}

.lf-auth-type:has(input:checked){
    border-color:var(--lf-teal);
    box-shadow:0 0 0 2px rgba(16,184,196,.10);
    background:#f8feff
}

/* =========================
   PASSWORD
========================= */

.lf-auth-password-wrap{
    position:relative;
    width:100%
}

.lf-auth-password-wrap input{
    padding-right:68px
}

.lf-auth-password-toggle{
    position:absolute;
    right:8px;
    top:7px;
    height:32px;
    padding:0 6px;
    border:0;
    background:transparent;
    color:var(--lf-teal-dark);
    font-size:12px;
    font-weight:800;
    cursor:pointer
}

/* =========================
   LOGIN ROW
========================= */

.lf-auth-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin:7px 0 22px;
    font-size:12px
}

.lf-auth-row label{
    display:flex;
    gap:7px;
    align-items:center;
    color:var(--lf-muted)
}

.lf-auth-row input[type=checkbox]{
    width:15px;
    height:15px
}

/* =========================
   LINKS
========================= */

.lf-auth-link{
    color:var(--lf-teal-dark);
    text-decoration:none;
    font-weight:800
}

.lf-auth-link:hover{
    text-decoration:underline
}

/* =========================
   BUTTON
========================= */

.lf-auth-button{
    width:100%;
    height:49px;
    border:0;
    border-radius:9px;
    background:linear-gradient(135deg,var(--lf-teal),#08aebc);
    color:#fff;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(16,184,196,.20);
    transition:.18s
}

.lf-auth-button:hover{
    transform:translateY(-1px)
}

.lf-auth-button:disabled{
    opacity:.7;
    cursor:wait;
    transform:none
}

/* =========================
   MESSAGES
========================= */

.lf-auth-error{
    padding:11px 13px;
    border-radius:9px;
    background:#fff4f2;
    color:var(--lf-danger);
    border:1px solid #f7d1cb;
    margin-bottom:17px;
    font-size:12.5px
}

.lf-auth-notice{
    padding:11px 13px;
    border-radius:9px;
    background:#eefaf8;
    color:var(--lf-success);
    border:1px solid #c7ebe7;
    margin-bottom:17px;
    font-size:12.5px
}

/* =========================
   PROGRESS
========================= */

.lf-auth-progress{
    display:flex;
    gap:5px;
    width:100%;
    max-width:400px;
    margin:0 auto 25px
}

.lf-auth-progress span{
    height:4px;
    flex:1;
    background:#e8edf3;
    border-radius:99px
}

.lf-auth-progress span.active{
    background:var(--lf-teal)
}

/* =========================
   FOOTER / LEGAL
========================= */

.lf-auth-switch{
    text-align:center;
    margin:22px 0;
    color:var(--lf-muted);
    font-size:12.5px
}

.lf-auth-divider{
    height:1px;
    background:var(--lf-border);
    margin:24px 0
}

.lf-auth-legal{
    font-size:10.5px;
    color:#8d98aa;
    text-align:center;
    line-height:1.5;
    margin-top:14px
}

.lf-auth-footer{
    text-align:center;
    color:#9aa5b6;
    font-size:10.5px;
    margin-top:28px
}

.lf-auth-small-note{
    font-size:11px;
    color:var(--lf-muted);
    line-height:1.5
}

/* =========================
   EMPLOYER / HIDDEN SECTIONS
========================= */

#lf-employer-fields[hidden],
#lf-learner-fields[hidden]{
    display:none !important
}

/* =========================
   TABLET
========================= */

@media(max-width:1100px){

    .lf-auth{
        grid-template-columns:300px minmax(0,1fr)
    }

    .lf-auth-brand{
        padding:42px 32px 30px
    }

    .lf-auth-brand h1{
        font-size:34px
    }

    .lf-auth-panel{
        padding:40px 28px
    }

    .lf-auth-box{
        max-width:700px
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width:900px){

    .lf-auth{
        grid-template-columns:1fr
    }

    .lf-auth-brand{
        display:none
    }

    .lf-auth-panel{
        min-height:100vh;
        padding:34px 18px
    }

    .lf-auth-box{
        max-width:700px;
        padding:4px 0 30px
    }
}

@media(max-width:650px){

    .lf-auth-panel{
        padding:24px 14px
    }

    .lf-auth-title{
        font-size:26px
    }

    .lf-auth-subtitle{
        font-size:13px;
        margin-bottom:24px
    }

    .lf-auth-grid,
    .lf-auth-type-grid{
        grid-template-columns:1fr
    }

    .lf-auth-full{
        grid-column:auto
    }

    .lf-auth-section-title{
        margin-top:24px
    }

    .lf-auth-topbar{
        margin-bottom:22px
    }

    .lf-auth-topbar p{
        text-align:right
    }
}

/* =========================
   VERY SMALL SCREENS
========================= */

@media(max-width:420px){

    .lf-auth-panel{
        padding:20px 10px
    }

    .lf-auth-box{
        padding:0
    }

    .lf-auth-field input,
    .lf-auth-field select,
    .lf-auth-field textarea{
        font-size:13px
    }

    .lf-auth-type{
        padding:13px
    }
}

/* =========================================================
   ACCOUNT TYPE VISIBILITY
   ========================================================= */

#lf-learner-fields {
    display: block;
}

#lf-employer-fields {
    display: none;
}

#lf-learner-fields[style*="display: none"] {
    display: none !important;
}

#lf-employer-fields[style*="display: none"] {
    display: none !important;
}

#lf-learner-fields[style*="display: block"] {
    display: block !important;
}

#lf-employer-fields[style*="display: block"] {
    display: block !important;
}