/* ===============================
   🌍 Base
=============================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial;
  height: 100vh;

  background: url("images/bg.jpg") no-repeat center center/cover;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Overlay */
body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 0;
}

/* ===============================
   🏷️ Logo
=============================== */
.logo {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 2;
}

.logo img {
  width: 140px;
  animation: fadeIn 1s ease;
}

/* ===============================
   🔐 Login Box
=============================== */
.login-box {
  position: relative;
  z-index: 2;
  width: 350px;
  padding: 40px;
  border-radius: 20px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);

  box-shadow: 0 10px 40px rgba(0,0,0,0.6);

  text-align: center;
  animation: slideUp 0.8s ease;
}

.login-box h2 {
  color: white;
  margin-bottom: 10px;
}

.subtitle {
  color: #ddd;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===============================
   ✏️ Inputs
=============================== */
input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;

  border-radius: 10px;
  border: none;
  outline: none;

  background: rgba(255,255,255,0.15);
  color: white;

  transition: 0.3s;
}

input::placeholder {
  color: #ccc;
}

input:focus {
  transform: scale(1.03);
  box-shadow: 0 0 12px #ff9800;
}

/* ===============================
   👁 Password Box
=============================== */
.password-box {
  position: relative;
}

.password-box .eye {
  position: absolute;
  right: 12px;
  top: 14px;
  cursor: pointer;
  color: white;
  font-size: 16px;
}

/* ===============================
   🔘 Button
=============================== */
button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;

  background: linear-gradient(45deg, #ff9800, #ff5722);
  border: none;
  border-radius: 10px;

  color: white;
  font-weight: bold;
  font-size: 15px;

  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,87,34,0.7);
}

/* ===============================
   🔔 Toast
=============================== */
#toast {
  visibility: hidden;
  min-width: 250px;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ===============================
   ⏳ Loader
=============================== */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #0f172a;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 9999;
}

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

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* ===============================
   📱 Responsive
=============================== */
@media (max-width: 400px) {
  .login-box {
    width: 90%;
    padding: 25px;
  }

  .logo img {
    width: 100px;
  }
}