/* =========================
   FONT
========================= */
@font-face {
    font-family: "Cheviera";
    src: url("mentahan/Font/chaviera/Chaviera.otf");
}

@font-face {
    font-family: "Montserrat";
    src: url("mentahan/Font/Montserrat/Montserrat-VariableFont_wght.ttf");
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* =========================
   BODY
========================= */
body {
    background: #fcb7e1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* =========================
   BACKGROUND STARS
========================= */
.stars {
    position: fixed;        
    inset: 0;
    overflow: hidden;       
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
}

.s1 {
    top: -150px;
    right: -180px;
    width: 600px;
    transform: rotate(20deg);
}

.s2 {
    bottom: -40px;
    left: -40px;
    width: 260px;
    transform: rotate(20deg);
}

.s3 {
    bottom: -40px;
    left: 0;
    width: 260px;
    transform: rotate(5deg);
}

.s4 {
    top: -100px;
    right: -160px;
    width: 600px;
    transform: rotate(5deg);
}

/* =========================
   CONTAINER
========================= */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   CARD
========================= */
.card {
    width: 450px;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 35px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 20;
}

.field {
    width: 85%;
    margin: 0 auto 18px;
    text-align: left;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #75154D;
    opacity: 0.9;
}


/* =========================
   CORNER STAR
========================= */
.corner-star {
    width: 80px;
    position: absolute;
    z-index: 30;
}

.top-left {
    top: -20px;
    left: -20px;
    transform: rotate(-20deg);
}

.bottom-right {
    bottom: -20px;
    right: -20px;
    transform: rotate(20deg);
}

/* =========================
   TITLE
========================= */
.title {
    font-family: "Cheviera", sans-serif;
    font-size: 34px;
    margin-bottom: 25px;
    color: #000;
}

/* =========================
   INPUT
========================= */
.input {
    width: 100%;
    height: 52px;
    padding: 15px 20px;
    border-radius: 25px;
    border: none;
    background: #f7a9d3;
    color: #ffffff;
    text-align: left;
    font-size: 16px;
    outline: none;
}

/*========= PASSWORD GROUP =========*/
/* ========= SHOW PASSWORD (SAMA DENGAN LOGIN) ========= */
.password-group {
    position: relative;
    margin: 0 auto 18px;
    width: 85%;
}

.password-group .input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 75%;
    transform: translateY(-76%); 
    cursor: pointer;
    color: #75154D;
}

.toggle-password svg {
    width: 25px;
    height: 25px;
}

.toggle-password:hover {
    opacity: 0.7;
}

.hidden {
    display: none;
}

/* =========================
   BUTTON
========================= */
.btn {
    width: 60%;
    padding: 15px;
    margin: 25px auto 10px;
    border-radius: 25px;
    border: none;
    background: #d10080;
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover {
    background: #b90070;
    transform: scale(1.03);
}

/* =========================
   TEXT & LINK
========================= */
.text {
    margin-top: 20px;
    font-size: 13px;
    color: #f379c4;
}

/* ===== LINK ===== */
.login, .home {
    font-size: 13px;
    color: #d10080;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.login:hover, .home:hover {
    color: #ff4fb3;
}

/* =========================
   ALERT
========================= */
.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 12px;
    font-size: 14px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
}

/* =========================
   RESPONSIVE (HP)
========================= */
@media (max-width: 480px) {

    /* ===== KUNCI ROOT (ANTI SCROLL) ===== */
    html, body {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    body {
        padding: 16px;
        justify-content: center;
        align-items: center;
    }

    /* ===== BACKGROUND STARS ===== */
    .stars {
        position: fixed;
        inset: 0;
        overflow: hidden;
    }

    .s1, .s4 {
        width: 360px;
        top: -120px;
        right: -140px;
    }

    .s2, .s3 {
        width: 220px;
        bottom: -60px;
        left: -40px;
    }

    /* ===== CONTAINER ===== */
    .container {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    /* ===== CARD ===== */
    .card {
        width: 100%;
        max-width: 360px;
        padding: 28px 22px;
        border-radius: 26px;
    }
    
    .field {
        width: 100%;
        margin-bottom: 16px;
    }

    .field-label {
        font-size: 12px;
    }

    .input {
        height: 48px;
        font-size: 15px;
    }

    .password-group .toggle-password {
        right: 12px;
        top: 48px;
    }

    /* ===== TITLE ===== */
    .title {
        font-size: 26px;
        margin-bottom: 22px;
    }

    /* ===== INPUT ===== */
    .input {
        width: 100%;
        height: 48px;
        font-size: 15px;
        padding: 13px 18px;
    }

    /* ===== PASSWORD GROUP ===== */
    .password-group {
        width: 100%;
    }

    .password-group .input {
        padding-right: 42px;
    }

    .toggle-password {
        right: 12px;
        transform: translateY(-72%);
    }

    .toggle-password svg {
        width: 22px;
        height: 22px;
    }

    /* ===== BUTTON ===== */
    .btn {
        width: 100%;
        margin-top: 22px;
    }
}

