/* ================= GLOBAL ================= */
*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    background:#f0f2f5;
}

/* ================= CONTAINER ================= */
.container{
    background:white;
    padding:30px;
    border-radius:16px;
    box-shadow:0 20px 50px rgba(0,0,0,.1);
    width:100%;
    max-width:320px;
    margin:80px auto;
    text-align:center;
    animation:slideUp .6s ease;
}

/* ================= LOGO ================= */
.logo img{
    width:90%;
    margin-bottom:20px;
}

/* ================= FORM ================= */
form{
    width:100%;
    max-width:260px;
    margin:0 auto;
    text-align:left;
}

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

input,
textarea{
    width:100%;
    padding:12px;
    margin-top:5px;
    border-radius:6px;
    border:1px solid #ccc;
}

/* ================= BUTTON ================= */
button{
    margin-top:20px;
    width:100%;
    padding:12px;
    background:#F5C227;
    border:none;
    border-radius:6px;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#02DEE0;
}

/* ================= STATES ================= */
.error{
    color:red;
}

.success{
    color:green;
}

/* ================= ANIMATION ================= */
@keyframes slideUp{
    from{opacity:0; transform:translateY(40px);}
    to{opacity:1; transform:translateY(0);}
}

/* ================= NAVBAR ================= */
.navbar{
    width:100%;
    background:white;
    padding:10px clamp(10px, 3vw, 20px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
    position:sticky;
    top:0;
}

/* LEFT (LOGO) */
.nav-left{
    flex:0 1 auto;
}

.nav-left img{
    height:clamp(30px, 4vw, 45px);
    max-width:120px;
    object-fit:contain;
    filter:grayscale(0%);
    transition:0.3s ease;
}

/* RIGHT SIDE */
.nav-right{
    display:flex;
    align-items:center;
    gap:clamp(8px, 2vw, 20px);
    flex:1;
    justify-content:flex-end;
    min-width:0;
}

.nav-right a{
    text-decoration:none;
    color:#333;
    font-weight:bold;
    font-size:clamp(12px, 1.5vw, 16px);
    white-space:nowrap;
    transition:0.3s;
}

.nav-right a:hover{
    color:#F5C227;
}

/* USER */
.nav-user{
    font-size:clamp(12px, 1.5vw, 16px);
    font-weight:bold;
    cursor:pointer;
    white-space:nowrap;

    max-width:120px;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* DROPDOWN */
.nav-dropdown{
    position:relative;
    flex-shrink:0;
}

.dropdown-menu{
    position:absolute;
    top:35px;
    right:0;
    background:white;
    border-radius:10px;
    box-shadow:0 12px 30px rgba(0,0,0,0.12);
    min-width:170px;
    overflow:hidden;
    z-index:1000;

    opacity:0;
    transform:translateY(-8px) scale(0.95);
    transform-origin: top right;
    transition:0.2s ease;

    pointer-events:none;
}

.dropdown-menu.active{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
}

.dropdown-menu a{
    display:block;
    padding:12px 16px;
    color:#333;
    text-decoration:none;
}

.dropdown-menu a:hover{
    background:#f5f5f5;
}

/* Dropdown arrow */
.dropdown-menu::before{
    content:"";
    position:absolute;
    top:-6px;
    right:15px;
    border-width:6px;
    border-style:solid;
    border-color:transparent transparent white transparent;
}

/* ================= HAMBURGER ================= */
.hamburger{
    display:none;
    font-size:26px;
    cursor:pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px){

    .hamburger{
        display:block;
    }

    .nav-right{
        position:absolute;
        top:60px;
        right:20px;
        background:white;
        border-radius:12px;
        box-shadow:0 15px 40px rgba(0,0,0,0.15);
        padding:15px;
        width:200px;

        flex-direction:column;
        gap:10px;

        opacity:0;
        transform:translateY(-10px) scale(0.95);
        transition:0.25s ease;

        pointer-events:none;
    }

    .nav-right.active{
        opacity:1;
        transform:translateY(0) scale(1);
        pointer-events:auto;
    }

    .nav-right a{
        margin:0;
    }

    /* Dropdown inside mobile */
    .nav-dropdown{
        width:100%;
    }

    .dropdown-menu{
        position:relative;
        top:0;
        right:auto;
        box-shadow:none;
        transform:none;
        opacity:1;
        display:none;
    }

    .dropdown-menu.active{
        display:block;
    }
}