/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* BACKGROUND */
body {
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: radial-gradient(
        circle at top left,
        #03150f 0%,
        #062c17 35%,
        #042d1a 60%,
        #04120d 100%
    );

    position: relative;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 20px;
}

/* soft glow kiri */
body::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(253, 177, 0, 0.03),
        transparent 40%,
        rgba(0, 64, 37, 0.05)
    );

    pointer-events: none;
}

/* WRAPPER */
.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD GLASS */
.login-card {
    width: 100%;
    max-width: 380px;
    padding: 42px;
    background: rgba(255, 255, 255, 0.942);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(253, 177, 0, 0.18);
    border-radius: 18px;
    box-shadow:
        0 30px 90px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.05);
    color: rgb(0, 0, 0);
    transform: translateY(0);
    transition: 0.3s ease;
}

.login-card:hover {
    transform: translateY(-3px);
}

/* BRAND */
.brand {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    padding: 1px;
}

.brand h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand p {
    font-size: 12px;
    opacity: 0.65;
}

/* INPUT */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
    opacity: 0.8;
}

.input-group input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(253, 177, 0, 0.18);
    background: rgba(0, 0, 0, 0.03);
    color: #000000;
    font-size: 14px;
    transition: all 0.25s ease;
    outline: none;
}

/* PLACEHOLDER STYLE */
.input-group input::placeholder {
    color: rgba(0, 0, 0, 0.35);
    font-size: 13px;
    letter-spacing: 0.2px;
}

/* FOCUS STATE */
.input-group input:focus {
    border-color: #FDB100;
    background: rgba(255, 191, 40, 0.042);
    box-shadow: 0 0 0 4px rgba(253, 177, 0, 0.03);
}

/* HOVER (biar hidup sedikit) */
.input-group input:hover {
    border-color: rgba(253, 177, 0, 0.35);
}

/* BUTTON */
.btn-login {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 12px;

    background: #FDB100;
    color: #0b2a1b;

    font-weight: 700;
    letter-spacing: 0.3px;

    cursor: pointer;

    transition: all 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
}

/* FOOTER */
.footer {
    margin-top: 18px;
    text-align: center;
    font-size: 11px;
    opacity: 0.6;
}

/* ERROR BOX */
.error-box {
    background: rgba(255, 138, 138, 0.368);
    border: 1px solid rgba(255, 27, 27, 0.416);
    color: #a72929;

    padding: 10px;
    border-radius: 12px;

    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);

    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    z-index: 9999;
}

.spinner {
    width: 42px;
    height: 42px;

    border: 3px solid rgba(255,255,255,0.15);
    border-top: 3px solid #FDB100;

    border-radius: 50%;

    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================
   PASSWORD TOGGLE
========================= */

.password-wrapper{
    position:relative;
}

.password-wrapper input{
    padding-right:52px;
}

.toggle-password{
    position:absolute;

    top:50%;
    right:14px;

    transform:translateY(-50%);

    width:32px;
    height:32px;

    border:none;
    background:none;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    color:#5b5b5b;

    opacity:.65;

    transition:.2s ease;
}

.toggle-password:hover{
    opacity:1;
    color:#0b2a1b;
}

.toggle-password svg{
    width:18px;
    height:18px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

    body{
        align-items: flex-start;
        padding: 24px 16px;
    }

    .login-wrapper{
        width:100%;
        min-height:100%;
        display:flex;
        justify-content:center;
        align-items:center;
        padding:20px 0;
    }

    .login-card{
        width:100%;
        max-width:100%;
        padding:28px 22px;
        border-radius:20px;
    }

    .logo img{
        width:64px;
        height:64px;
        padding:1px;
    }

    .brand {
        margin-bottom:15px;
    }

    .brand h1{
        font-size:18px;
        line-height:1.4;
    }

    .brand p{
        font-size:12px;
        margin-top:4px;
    }

    .input-group{
        margin-bottom:16px;
    }

    .input-group input{
        padding:14px;
        font-size:14px;
    }

    .btn-login{
        padding:14px;
        font-size:15px;
    }

    .footer{
        margin-top:16px;
        font-size:10px;
    }
}

