/* ===============================
   AUTH LOGIN / LOGOUT CSS
================================ */

body.auth-body{
    margin:0;
    min-height:100vh;
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
    background:
        linear-gradient(90deg, rgba(0,0,0,.80) 0%, rgba(2,7,8,.52) 43%, rgba(0,0,0,.18) 100%),
        url("../img/login-bg-kopassus.jpg") right center/cover no-repeat;
    overflow-x:hidden;
}

body.auth-body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.26)),
        linear-gradient(135deg, rgba(255,214,31,.13) 0%, transparent 24%, transparent 100%);
    pointer-events:none;
}

.auth-page{
    position:relative;
    z-index:2;
    min-height:100vh;
    display:flex;
    justify-content:flex-start;
    gap:42px;
    gap:clamp(26px, 3.5vw, 50px);
    align-items:center;
    padding:36px 280px 36px 72px;
    padding:36px clamp(190px, 20vw, 320px) 36px clamp(58px, 6vw, 96px);
    box-sizing:border-box;
}

.auth-left{
    flex:1 1 620px;
    max-width:680px;
    text-shadow:0 4px 12px rgba(0,0,0,.72);
}

.auth-unit-logo{
    display:block;
    width:142px;
    height:auto;
    margin:0 0 18px 76px;
    filter:drop-shadow(0 12px 18px rgba(0,0,0,.78));
}

.auth-left h1{
    color:#ffd51f;
    font-size:46px;
    font-size:clamp(38px, 3.45vw, 50px);
    font-weight:1000;
    line-height:1.03;
    margin:16px 0 12px;
    letter-spacing:0;
    text-shadow:0 3px 0 rgba(0,0,0,.42), 0 16px 34px rgba(0,0,0,.72);
    text-wrap:balance;
}

.auth-left h3{
    color:#f8f8f8;
    font-size:18px;
    letter-spacing:0;
    margin:0 0 20px;
    font-weight:1000;
    -webkit-text-stroke:.6px rgba(0,0,0,.72);
}

.auth-left p{
    color:#f5f8fb;
    max-width:540px;
    font-size:15px;
    line-height:1.55;
    font-weight:800;
    text-shadow:0 3px 8px rgba(0,0,0,.86);
}

.auth-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 13px;
    border-radius:4px;
    color:#ffd51f;
    background:rgba(0,0,0,.42);
    border:1px solid rgba(255,213,31,.28);
    font-size:12px;
    font-weight:1000;
    letter-spacing:0;
    box-shadow:0 12px 30px rgba(0,0,0,.28);
}

.auth-card{
    width:382px;
    flex:0 0 382px;
    box-sizing:border-box;
    position:relative;
    overflow:hidden;
    background:linear-gradient(180deg, rgba(8,8,8,.98) 0%, rgba(0,0,0,.94) 100%);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,213,31,.38);
    border-radius:8px;
    padding:32px 30px 26px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.06) inset,
        0 30px 90px rgba(0,0,0,.72),
        0 0 34px rgba(255,213,31,.16);
}

.auth-card::before{
    display:none;
}

.auth-logo{
    text-align:center;
    margin-bottom:12px;
}

.auth-logo img{
    width:142px;
    height:142px;
    object-fit:contain;
    padding:0;
    border-radius:0;
    background:transparent;
    border:0;
    box-shadow:none;
    transform:scaleX(-1);
    filter:drop-shadow(0 10px 18px rgba(255,213,31,.12));
}

.auth-card h2{
    text-align:center;
    color:#ffd51f;
    font-size:31px;
    font-weight:1000;
    margin:4px 0 8px;
}

.auth-card p{
    text-align:center;
    color:#d9d9d9;
    margin:0 0 24px;
    font-size:12px;
    font-weight:800;
}

.auth-alert{
    background:#fff1f2;
    color:#be123c;
    border:1px solid #fecdd3;
    padding:12px;
    border-radius:12px;
    margin-bottom:14px;
    text-align:center;
    font-weight:900;
}

.auth-field{
    margin-bottom:16px;
}

.auth-field label{
    display:block;
    color:#ffd51f;
    font-size:12px;
    font-weight:1000;
    text-transform:uppercase;
    margin-bottom:8px;
    letter-spacing:0;
}

.auth-field input{
    width:100%;
    height:48px;
    box-sizing:border-box;
    background:#ffffff;
    color:#111827;
    border:1px solid #d7e0ea;
    border-radius:12px;
    padding:0 15px;
    outline:none;
    font-size:14px;
    font-weight:800;
    box-shadow:0 1px 0 rgba(15,37,63,.04);
}

.auth-field input:focus{
    border-color:#ffd51f;
    box-shadow:0 0 0 3px rgba(255,213,31,.18);
}

.auth-btn{
    width:100%;
    height:50px;
    border:0;
    border-radius:10px;
    background:linear-gradient(135deg,#d83b17 0%,#ef6a1a 48%,#ffd12a 100%);
    color:#fff;
    font-size:15px;
    font-weight:1000;
    cursor:pointer;
    margin-top:6px;
    box-shadow:0 14px 26px rgba(216,59,23,.32);
    transition:transform .15s ease, filter .15s ease;
}

.auth-btn:hover{
    filter:brightness(1.08);
    transform:translateY(-1px);
}

.auth-footer{
    margin-top:20px;
    display:flex;
    justify-content:space-between;
    color:#e8e8e8;
    font-size:12px;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:15px;
    font-weight:900;
}

.auth-footer b{
    color:#15803d;
}

.logout-box{
    text-align:center;
}

.logout-box h2{
    color:#ffca2c;
}

.logout-box p{
    color:#bbb;
}

@media(max-width:900px){
    body.auth-body{
        min-height:100vh;
        background-position:center center;
        background-attachment:scroll;
        overflow-y:auto;
    }

    body.auth-body::before{
        position:absolute;
        min-height:100%;
    }

    .auth-page{
        flex-direction:column;
        justify-content:flex-start;
        gap:12px;
        align-items:start;
        min-height:100vh;
        padding:14px 14px 24px;
    }

    .auth-left{
        flex:none;
        text-align:center;
        max-width:none;
    }

    .auth-unit-logo{
        width:82px;
        margin:0 auto 10px;
    }

    .auth-badge{
        padding:6px 12px;
        font-size:10px;
    }

    .auth-left h1{
        font-size:23px;
        line-height:1.08;
        margin:10px 0 8px;
    }

    .auth-left h3{
        font-size:13px;
        letter-spacing:0;
        margin-bottom:8px;
    }

    .auth-left p{
        margin:0 auto;
        max-width:350px;
        font-size:12px;
        line-height:1.35;
    }

    .auth-card{
        width:100%;
        flex:none;
        max-width:370px;
        align-self:center;
        box-sizing:border-box;
        padding:18px 18px 16px;
        border-radius:8px;
    }

    .auth-logo{
        margin-bottom:6px;
    }

    .auth-logo img{
        width:116px;
        height:116px;
    }

    .auth-card h2{
        font-size:26px;
        margin:2px 0 6px;
    }

    .auth-card p{
        margin-bottom:14px;
        font-size:11px;
    }

    .auth-field{
        margin-bottom:12px;
    }

    .auth-field label{
        font-size:11px;
        margin-bottom:6px;
    }

    .auth-field input{
        height:44px;
        border-radius:10px;
    }

    .auth-btn{
        height:46px;
        margin-top:4px;
    }

    .auth-footer{
        margin-top:14px;
        padding-top:12px;
        font-size:11px;
    }
}

@media(min-width:901px) and (max-width:1180px){
    .auth-page{
        gap:32px;
        padding:36px 190px 36px 52px;
        padding:36px clamp(150px, 17vw, 230px) 36px 52px;
    }

    .auth-left h1{
        font-size:36px;
        line-height:1.06;
    }

    .auth-card{
        width:370px;
        flex-basis:370px;
    }
}

@media(max-width:420px){
    .auth-page{
        padding:12px 12px 22px;
    }

    .auth-left h1{
        font-size:20px;
    }

    .auth-left h3{
        font-size:12px;
    }

    .auth-card{
        padding:16px;
        border-radius:8px;
    }

    .auth-field input,
    .auth-btn{
        height:44px;
    }
}

@supports (min-height: 100dvh){
    body.auth-body,
    .auth-page{
        min-height:100dvh;
    }

    @media(max-width:900px){
        body.auth-body,
        .auth-page{
            min-height:100dvh;
        }
    }
}
