/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* BACKGROUND */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg, #0f172a, #020617);
  color: #fff;
}

/* WRAPPER */
.login-wrapper {
  width: 100%;
  padding: 20px;
}

/* CARD LOGIN */
.login-box {
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding: 30px;

  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  backdrop-filter: blur(15px);

  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);

  animation: fadeIn 0.5s ease;
}

/* TITLE */
.login-box h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
}

/* INPUT GROUP */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px 10px;
  border: none;
  outline: none;

  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;

  border: 1px solid transparent;
  transition: 0.3s;
}

/* FOCUS EFFECT */
.input-group input:focus {
  border: 1px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56,189,248,0.5);
}

/* FLOAT LABEL */
.input-group label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 13px;
  pointer-events: none;
  transition: 0.3s;
}

/* FLOAT ACTIVE */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -6px;
  font-size: 11px;
  color: #38bdf8;
  background: #020617;
  padding: 0 5px;
}

/* BUTTON */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;

  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  font-weight: bold;
  cursor: pointer;

  transition: 0.3s;
}

/* HOVER */
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(56,189,248,0.4);
}

/* ERROR */
.error {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid red;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 13px;
  text-align: center;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   🌞 LIGHT MODE DEFAULT
========================= */
body {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #1e293b;
}

/* CARD */
.login-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* INPUT */
.input-group input {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

/* FOCUS */
.input-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59,130,246,0.3);
}

/* LABEL */
.input-group label {
  color: #64748b;
}

/* FLOAT LABEL FIX */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  background: #ffffff;
  color: #3b82f6;
}

/* ERROR */
.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}