@import url('/assets/css/root.css');

*{
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    margin:0;
    min-height:100vh;
    background:var(--bg);
    color:var(--text);
}

/* ================= CONTAINER ================= */
.auth-container{
    width:100%;
    min-height:calc(100vh - 64px); /* tinggi navbar */
    padding:10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-card{
    margin: 20px;
    width:100%;
    max-width:420px;
    background:#fff;
    padding:28px 26px 30px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

/* ================= TYPO ================= */
.auth-card h2{
    margin-bottom:20px;
    font-size:22px;
    font-weight:600;
    text-align:center;
}

.subtitle{
    text-align:center;
    color:#666;
    font-size:13px;
    margin:6px 0 22px;
    line-height:1.5;
}

/* ================= ALERT ================= */
.alert-error{
    background:#fdecea;
    color:#b42318;
    padding:10px 14px;
    border-radius:var(--radius-sm);
    font-size:13px;
    margin-bottom:15px;
}

/* ================= FORM ================= */
form{
    display:flex;
    flex-direction:column;
    gap:12px;
}

input{
    width:100%;
    padding:12px 14px;
    border-radius:var(--radius-sm);
    border:1px solid #ddd;
    font-size:14px;
    outline:none;
}

input:focus{
    border-color:var(--sage);
    box-shadow:0 0 0 3px rgba(156,175,136,.15);
}

/* ================= BUTTON ================= */
.auth-btn{
    margin-top:10px;
    background:var(--sage);
    color:#fff;
    border:none;
    padding:13px;
    border-radius:var(--radius-sm);
    font-size:14px;
    font-weight:600;
    
    cursor:pointer;
}

.auth-btn:hover{
    background:var(--sage-dark);
}

/* ================= FOOTER ================= */
.auth-footer{
    margin-top:18px;
    text-align:center;
    font-size:13px;
    color:#666;
}

.auth-footer a{
    color:var(--sage);
    text-decoration:none;
    font-weight:500;
}

.auth-footer a:hover{
    text-decoration:underline;
}

.password-field{
  position:relative;
}

.password-field input{
  width:100%;
  padding-right:46px;
}

.toggle-password{
  position:absolute;
  top:50%;
  right:12px;
  transform:translateY(-50%);
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  opacity:.6;
}

.toggle-password:hover{
  opacity:1;
}

.toggle-password.active .icon-eye{
  opacity:.4;
}

.icon-eye{
  width:20px;
  height:20px;
  fill:none;
  stroke:#2f3a2f;
  stroke-width:1.8;
}


.password-info{
  display:block;
  margin-top:6px;
  font-size:12px;
}

.password-info.success{
  color:#3f6b4f;
}

.password-info.error{
  color:#c0392b;
}


.auth-btn.loading{
  opacity:.7;
  cursor:not-allowed;
}


/* ================= DESKTOP REFINEMENT ================= */
@media (min-width:768px){
    .auth-card{
        padding:20px 20px 34px;
    }

    .auth-card h2{
        font-size:24px;
    }

    .subtitle{
        font-size:14px;
    }
}
