/* 💎 Deep Blue Elegance Edition — by Creative */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e1525, #1b263b);
  overflow: hidden;
  position: relative;
  color: #e6e9f0;
}

/* 🌌 Background with soft glow */
.background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.3), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(180, 80, 180, 0.2), transparent 70%),
              #0e1525;
  background-blend-mode: screen;
  z-index: 0;
}

/* 🧊 Main container */
.login-container {
  position: relative;
  z-index: 2;
  width: 400px;
  padding: 45px 40px;
  border-radius: 25px;
  background: rgba(18, 25, 40, 0.7);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 128, 255, 0.25);
  text-align: center;
  transition: all 0.4s ease;
  animation: fadeIn 0.7s ease;
}

.login-container.hidden {
  display: none;
}

.login-container:hover {
  box-shadow: 0 0 50px rgba(0, 128, 255, 0.35);
  transform: translateY(-2px);
}

.login-container h2 {
  font-size: 27px;
  font-weight: 600;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #00bfff, #9f7aea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

/* 💠 Input boxes */
.input-box {
  margin-bottom: 22px;
}

.input-box input {
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  color: #e6e9f0;
  border: 1px solid rgba(0, 136, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: 0.3s;
}

.input-box input::placeholder {
  color: rgba(200, 210, 230, 0.6);
}

.input-box input:focus {
  border-color: #00bfff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

/* ⚙️ Options */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #cdd6e8;
  margin-bottom: 18px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.options input {
  accent-color: #007bff;
}

.options a {
  color: #6ea8fe;
  text-decoration: none;
  transition: 0.3s;
}

.options a:hover {
  text-decoration: underline;
}

/* 🔵 Buttons */
.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #007bff, #6f42c1);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 136, 255, 0.35);
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.55);
}

/* 🔗 Links */
.register-link {
  margin-top: 20px;
  font-size: 14px;
  color: #cfd8ea;
}

.register-link a {
  color: #4dabff;
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/* 🔔 Toast */
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 28, 45, 0.9);
  color: #e9efff;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px;
  border: 1px solid rgba(0, 136, 255, 0.2);
  box-shadow: 0 0 25px rgba(0, 136, 255, 0.4);
  display: none;
  z-index: 999;
}

/* ⚡ Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .login-container {
    width: 90%;
    padding: 35px 25px;
    border-radius: 20px;
    backdrop-filter: blur(18px);
  }

  .login-container h2 {
    font-size: 24px;
  }

  .login-btn {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding-top: 60px;
  }

  .login-container {
    width: 92%;
    padding: 25px 20px;
    border-radius: 16px;
  }

  .input-box input {
    font-size: 14px;
    padding: 11px;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .login-btn {
    margin-top: 6px;
  }

  #toast {
    font-size: 14px;
    padding: 12px 20px;
  }
}
