/* =====================
   GLOBAL
===================== */

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
}

body{
    font-family:"Segoe UI", Arial, sans-serif;
    background:#f2f3f7;
}


/* =====================
   WRAPPER
===================== */

.wrap{
    display:flex;
    justify-content:center;
    padding:50px 15px;
}


/* =====================
   CARD
===================== */

.card{
    width:100%;
    max-width:600px;

    background:white;

    border-radius:16px;

    padding:45px;

    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}


/* =====================
   TITLE
===================== */

.card h2{
    text-align:center;
    font-size:26px;
    font-weight:600;
    margin-bottom:25px;
}


/* =====================
   FORM
===================== */

form{
    margin-top:10px;
}


/* =====================
   LABEL
===================== */

label{
    font-size:14px;
    font-weight:600;
    display:block;
    margin-bottom:6px;
    margin-top:12px;
}


/* =====================
   INPUT
===================== */

input,
select,
textarea{
    width:100%;

    padding:12px 14px;

    border-radius:10px;
    border:1px solid #ddd;

    font-size:14px;

    background:#fafafa;

    transition:.25s;

    margin-bottom:8px;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;

    border:1px solid #4b1f7a;

    background:white;

    box-shadow:0 0 0 2px rgba(75,31,122,.15);
}


/* =====================
   ROW
===================== */

.row{
    display:flex;
    gap:50px;
    margin-top:12px;
    margin-bottom:18px;
}

.col{
    flex:1;
}


/* =====================
   TEXTAREA
===================== */

textarea{
    height:90px;
    resize:vertical;
}


/* =====================
   FILE MESSAGE
===================== */

.file-msg{
    display:block;
    font-size:12px;
    margin-top:4px;
}


/* =====================
   NOTE BOX
===================== */

.note-box{
    margin-top:8px;
    padding:10px 12px;

    background:#fff7ed;

    border-left:4px solid #f97316;

    border-radius:6px;
}

.note-title{
    font-size:12px;
    font-weight:600;
    color:#c2410c;

    display:block;
    margin-bottom:4px;
}

.note-box p{
    font-size:13px;
    color:#7c2d12;
    margin:2px 0;
    line-height:1.4;
}

.note-sub{
    font-size:12px;
    color:#9a3412;
}


/* =====================
   BACK BUTTON
===================== */

.back-btn{
    display:inline-block;

    margin-bottom:12px;

    padding:6px 14px;

    font-size:14px;

    color:#fff;

    border:1px solid #2d1034;

    background:#4b1f7a;

    font-weight:700;

    border-radius:6px;

    text-decoration:none;

    transition:.2s;
}

.back-btn:hover{
    background:#2d1034;
    color:white;
}


/* =====================
   SUBMIT BUTTON
===================== */

.btn{
    width:100%;

    margin-top:25px;

    padding:14px;

    border:none;

    border-radius:12px;

    background:#4b1f7a;

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;
}

.btn:hover{
    background:#36145a;
    transform:translateY(-1px);
}


/* =====================
   PASSWORD NOTE
===================== */

.password-note{
    margin-top:15px;
}

.password-note ul{
    margin:6px 0 0 12px;
    padding:0;
}

.password-note li{
    margin-bottom:4px;
    font-size:10px;
}


/* =====================
   TOAST
===================== */

.toast-container{
    position:fixed;

    top:40px;

    left:50%;

    transform:translateX(-50%);

    z-index:9999;
}

.toast{
    min-width:320px;

    padding:14px 20px;

    border-radius:10px;

    color:white;

    font-size:14px;

    text-align:center;

    box-shadow:0 6px 20px rgba(0,0,0,.2);

    animation:fadeDown .3s ease;
}

.toast-success{
    background:#0f7f0b;
}

.toast-error{
    background:#e53935;
}

small{
    display:block;
    font-size:12px;
    margin-top:4px;
}


/* =====================
   ANIMATION
===================== */

@keyframes fadeDown{

    from{
        opacity:0;
        transform:translate(-50%,-20px);
    }

    to{
        opacity:1;
        transform:translate(-50%,0);
    }

}

/* =====================
   MOBILE / PWA
===================== */

@media (max-width:768px){

    body{
        background:#f2f3f7;
    }

    .wrap{
        padding:12px;
    }

    .card{
        width:100%;
        max-width:none;

        min-height:calc(100dvh - 24px);

        padding:24px;

        border-radius:14px;

        box-shadow:0 2px 8px rgba(0,0,0,0.05);
    }

    .row{
        flex-direction:column;
        gap:0;
        margin-top:0;
        margin-bottom:0;
    }

    .card h2{
        font-size:24px;
    }

    input,
    select,
    textarea{
        font-size:16px;
    }

    .toast-container{
        top:15px;
        left:0;
        width:100%;
        transform:none;

        display:flex;
        justify-content:center;
    }

    .toast{
        width:90%;
        min-width:auto;
        max-width:400px;
    }
}
    


/* =====================
   LARGE DESKTOP
===================== */

@media (min-width:1200px){

    .card{
        max-width:650px;
    }

}