
/* =========================================================
   FoodClick Authentication
   Shared visual system for Panel + SuperAdmin login
   ========================================================= */

:root{
    --fc-orange:#f97316;
    --fc-orange-strong:#ea580c;
    --fc-amber:#fb923c;
    --fc-ink:#171717;
    --fc-ink-soft:#292524;
    --fc-surface:#ffffff;
    --fc-bg:#f7f7f5;
    --fc-muted:#78716c;
    --fc-border:#e7e5e4;
    --fc-danger:#dc2626;
    --fc-shadow:0 24px 70px rgba(23,23,23,.16);
}

*{box-sizing:border-box}

html,body{margin:0;min-height:100%;}

body.fc-auth-page{
    min-height:100vh;
    min-height:100svh;
    display:flex;
    align-items:stretch;
    justify-content:center;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--fc-ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(249,115,22,.13), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(251,146,60,.10), transparent 28%),
        var(--fc-bg);
}

.fc-auth-shell{
    width:100%;
    min-height:100vh;
    min-height:100svh;
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
    overflow:hidden;
}

.fc-auth-visual{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:56px clamp(36px,6vw,100px);
    overflow:hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(249,115,22,.95), transparent 25%),
        radial-gradient(circle at 85% 88%, rgba(251,146,60,.24), transparent 30%),
        linear-gradient(145deg,#171717 0%,#211d1b 55%,#2b211c 100%);
    color:#fff;
}

.fc-auth-visual::before,
.fc-auth-visual::after{
    content:"";
    position:absolute;
    border:1px solid rgba(255,255,255,.09);
    border-radius:999px;
    pointer-events:none;
}

.fc-auth-visual::before{
    width:460px;
    height:460px;
    right:-190px;
    top:-170px;
}

.fc-auth-visual::after{
    width:330px;
    height:330px;
    left:-170px;
    bottom:-180px;
}

.fc-auth-visual-inner{
    width:min(580px,100%);
    position:relative;
    z-index:1;
}

.fc-brand-lockup{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:min(330px,82%);
    padding:12px 20px;
    border-radius:22px;
    background:#fff;
    box-shadow:0 18px 50px rgba(0,0,0,.22);
    margin-bottom:34px;
}

.fc-brand-lockup img{
    display:block;
    width:100%;
    max-height:150px;
    object-fit:contain;
}

.fc-auth-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#fdba74;
}

.fc-auth-kicker::before{
    content:"";
    width:24px;
    height:2px;
    border-radius:99px;
    background:var(--fc-orange);
}

.fc-auth-visual h1{
    margin:0;
    max-width:560px;
    font-size:clamp(34px,4vw,38px);
    line-height:1.02;
    letter-spacing:-.045em;
    font-weight:850;
}

.fc-auth-visual h1 strong{
    color:#fb923c;
    font-weight:850;
}

.fc-auth-visual-copy{
    max-width:500px;
    margin:22px 0 0;
    color:#d6d3d1;
    font-size:16px;
    line-height:1.7;
}

.fc-auth-points{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:32px;
}

.fc-auth-point{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 15px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:rgba(255,255,255,.045);
    backdrop-filter:blur(10px);
    color:#f5f5f4;
    font-size:13px;
    font-weight:650;
}

.fc-auth-point-icon{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    flex:0 0 30px;
    border-radius:9px;
    background:rgba(249,115,22,.18);
    color:#fdba74;
}

.fc-auth-point-icon svg{
    width:16px;
    height:16px;
}

.fc-auth-visual-footer{
    margin-top:38px;
    color:#a8a29e;
    font-size:12px;
}

.fc-auth-form-side{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:38px clamp(24px,5vw,78px);
    background:rgba(255,255,255,.78);
}

.fc-auth-form-wrap{
    width:min(450px,100%);
}

.fc-auth-mobile-brand{
    display:none;
}

.fc-auth-card{
    width:100%;
    padding:42px;
    border:1px solid rgba(231,229,228,.9);
    border-radius:26px;
    background:rgba(255,255,255,.96);
    box-shadow:var(--fc-shadow);
}

.fc-auth-card-head{
    margin-bottom:30px;
}

.fc-auth-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:6px 11px;
    border-radius:999px;
    background:#fff7ed;
    color:#c2410c;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.fc-auth-card h2{
    margin:17px 0 8px;
    font-size:31px;
    line-height:1.12;
    letter-spacing:-.035em;
}

.fc-auth-subtitle{
    margin:0;
    color:var(--fc-muted);
    font-size:14px;
    line-height:1.6;
}

.fc-auth-error{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:0 0 20px;
    padding:13px 14px;
    border:1px solid #fecaca;
    border-radius:12px;
    background:#fef2f2;
    color:#991b1b;
    font-size:13px;
    line-height:1.5;
}

.fc-auth-error svg{
    width:17px;
    height:17px;
    flex:0 0 17px;
    margin-top:1px;
}

.fc-auth-form{
    display:flex;
    flex-direction:column;
    gap:19px;
}

.fc-auth-field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.fc-auth-field label{
    color:#292524;
    font-size:13px;
    font-weight:750;
}

.fc-auth-input-wrap{
    position:relative;
}

.fc-auth-input-icon{
    position:absolute;
    left:14px;
    top:50%;
    width:18px;
    height:18px;
    color:#a8a29e;
    transform:translateY(-50%);
    pointer-events:none;
}

.fc-auth-input{
    width:100%;
    min-height:52px;
    padding:13px 14px 13px 44px;
    border:1px solid #d6d3d1;
    border-radius:13px;
    outline:none;
    background:#fff;
    color:#1c1917;
    font:inherit;
    font-size:14px;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.fc-auth-input::placeholder{color:#a8a29e}

.fc-auth-input:hover{border-color:#a8a29e}

.fc-auth-input:focus{
    border-color:var(--fc-orange);
    background:#fff;
    box-shadow:0 0 0 4px rgba(249,115,22,.13);
}

.fc-auth-submit{
    width:100%;
    min-height:53px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    margin-top:5px;
    padding:13px 20px;
    border:0;
    border-radius:13px;
    background:linear-gradient(135deg,var(--fc-orange),var(--fc-orange-strong));
    color:#fff;
    font:inherit;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 12px 25px rgba(234,88,12,.23);
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

.fc-auth-submit:hover{
    transform:translateY(-1px);
    box-shadow:0 15px 30px rgba(234,88,12,.29);
    filter:saturate(1.04);
}

.fc-auth-submit:active{transform:translateY(0)}

.fc-auth-submit svg{
    width:17px;
    height:17px;
}

.fc-auth-back{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:24px;
    color:#78716c;
    font-size:12px;
    font-weight:650;
    text-decoration:none;
    transition:color .18s ease;
}

.fc-auth-back:hover{color:var(--fc-orange-strong)}

.fc-auth-back svg{width:15px;height:15px}

.fc-auth-card-footer{
    margin-top:27px;
    padding-top:20px;
    border-top:1px solid #eeeae7;
    color:#a8a29e;
    font-size:11px;
    line-height:1.6;
    text-align:center;
}

.fc-auth-card-footer strong{color:#78716c}

@media (max-width:980px){
    .fc-auth-shell{grid-template-columns:1fr}
    .fc-auth-visual{
        min-height:300px;
        align-items:flex-end;
        padding:34px 28px 30px;
    }
    .fc-auth-visual-inner{width:min(700px,100%)}
    .fc-brand-lockup{
        width:240px;
        padding:8px 15px;
        margin-bottom:24px;
    }
    .fc-brand-lockup img{max-height:110px}
    .fc-auth-visual h1{font-size:36px}
    .fc-auth-visual-copy{font-size:14px;margin-top:13px}
    .fc-auth-points{display:none}
    .fc-auth-visual-footer{margin-top:18px}
    .fc-auth-form-side{padding:32px 20px 44px}
}

@media (max-width:560px){
    body.fc-auth-page{
        background:#fff;
    }
    .fc-auth-visual{
        display:none;
    }
    .fc-auth-form-side{
        min-height:100vh;
        min-height:100svh;
        align-items:flex-start;
        padding:26px 16px;
        background:#fff;
    }
    .fc-auth-form-wrap{padding-top:0}
    .fc-auth-mobile-brand{
        display:flex;
        justify-content:center;
        margin:0 auto 20px;
    }
    .fc-auth-mobile-brand img{
        width:210px;
        max-height:120px;
        object-fit:contain;
    }
    .fc-auth-card{
        padding:28px 21px;
        border-radius:20px;
        box-shadow:0 15px 45px rgba(23,23,23,.09);
    }
    .fc-auth-card h2{font-size:27px}
}

@media (prefers-reduced-motion:reduce){
    .fc-auth-submit,.fc-auth-input,.fc-auth-back{transition:none}
}
