/* -------- GLOBAL -------- */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Segoe UI", Arial, sans-serif;
}

/* -------- BACKGROUND -------- */
body.login-bg{
  background:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url("/assets/bg.jpg") no-repeat center center fixed;
  background-size:cover;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* Dark overlay for readability */
body.login-bg::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.45);
  z-index:0;
  pointer-events:none;
}

/* -------- LOGIN CARD -------- */
.login-card{
  position:relative;
  z-index:1;
  background:rgba(255,255,255,0.88);
  border-radius:18px;
  box-shadow:0 6px 18px rgba(0,0,0,0.35);
  padding:28px;
  text-align:center;
  width:100%;
  max-width:380px;
  animation:fadeIn 0.6s ease;
}

/* -------- LOGO -------- */
.logo{
  width:95px;
  height:95px;
  object-fit:contain;
  margin-bottom:18px;
  border-radius:50%;
  background:white;
  padding:5px;
}

/* -------- TEXT -------- */
.login-card h1{
  font-size:1.45rem;
  font-weight:650;
  color:#000;
  letter-spacing:0.5px;
  margin-bottom:6px;
}

.login-card p{
  margin-bottom:20px;
  color:#000;
  font-size:0.93rem;
}

/* -------- INPUT -------- */
input[type="text"]{
  width:100%;
  padding:12px;
  border:1px solid #ccc;
  border-radius:10px;
  margin-bottom:15px;
  font-size:1rem;
  outline:none;
  background:rgba(255,255,255,0.95);
  transition:0.2s;
}

input[type="text"]:focus{
  border-color:#007bff;
  box-shadow:0 0 5px rgba(0,123,255,0.3);
}

/* -------- BUTTON -------- */
button{
  width:100%;
  padding:12px;
  border:none;
  background:#007bff;
  color:white;
  border-radius:10px;
  font-size:1.15rem;
  cursor:pointer;
  transition:0.25s;
  font-weight:600;
}

button:hover{
  background:#005fcc;
  transform:translateY(-2px);
}

/* -------- ERROR MESSAGE -------- */
.error{
  background:#ffdddd;
  padding:10px;
  border-left:4px solid #f00;
  margin-bottom:15px;
  border-radius:5px;
  color:#a00;
  font-size:0.9rem;
}

/* -------- ANIMATION -------- */
@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(25px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* -------- MOBILE OPTIMIZATION -------- */
@media (max-width:480px){

  body.login-bg{
    padding:10px;
  }

  .login-card{
    padding:20px;
    max-width:92%;
    border-radius:15px;
  }

  .login-card h1{
    font-size:1.25rem;
  }

  .login-card p{
    font-size:0.85rem;
  }

  .logo{
    width:70px;
    height:70px;
  }

  input[type="text"],
  button{
    font-size:1rem;
    padding:11px;
  }

}