* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Serif', Lora, Bodoni;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(rgba(250, 230, 230, 0.15), rgba(250, 230, 230, 0.15)),
        url('../../assets/images/logo.png') no-repeat center center / cover;
    background-attachment: fixed;
}

.login-wrapper {
    width: 100%;
    padding: 20px;
}

.login-box {
    max-width: 380px;
    margin: 0 auto;
    background: rgba(250, 230, 230, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.login-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.25);
}

.login-box h2 {
    margin-bottom: 6px;
    color: #7e29d9;
}

.login-box .subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 18px;
}

.login-box form {
    text-align: left;
}

.login-box label {
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
    color: #000000;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.login-box input:focus {
    outline: none;
    border-color: #7447cf;
    box-shadow: 0 0 0 2px rgba(230,126,34,0.2);
}

.login-box button {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #8040d8;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.login-box button:hover {
    background: #904cde;
}

.alert {
    background: #7c24ca;
    padding: 8px 10px;
    border-radius: 6px;
    color: #6823b7;
    font-size: 13px;
    margin-bottom: 10px;
}

/* =========================
   PASSWORD TOGGLE (fixed, satu blok saja)
   ========================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 44px; /* ruang buat icon mata */
    margin-bottom: 0;    /* margin dipindah ke wrapper biar tidak ganggu centering icon */
}

.password-wrapper {
    margin-bottom: 12px;
}

#togglePassword {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #8b8b8b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#togglePassword:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #6c3ce9;
}

#togglePassword svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

@media (max-width: 480px) {
    .login-box {
        padding: 22px 18px;
    }
}

/* =========================
   MODAL LOGIN (THEME ORANGE)
   ========================= */
.lc-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

.lc-modal.show{ display: flex; }

.lc-modal-box{
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.lc-modal-head{
  background: linear-gradient(135deg, #7947e4, #6014b2);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
}

.lc-modal-body{
  padding: 16px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.lc-modal-foot{
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
}

.lc-modal-btn{
  background: #8447fd;
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.lc-modal-btn:hover{
  background:#7a51ff;
  transform: scale(1.02);
}