@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Background */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: url('/admin/assets/img/login_bg.png') center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Container */
.login-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 95%;
  max-width: 430px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Headings */
h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.5rem;
}

/* Inputs */
.full-input {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  margin: 10px 0;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.full-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
  outline: none;
}

/* Buttons */
button,
.btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background: linear-gradient(to right, #007bff, #00bfff);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  margin: 10px 0;
}

button:hover,
.btn-submit:hover {
  background: linear-gradient(to right, #0056b3, #0096c7);
}

/* Links */
a {
  display: block;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 10px;
}

a:hover {
  text-decoration: underline;
}

/* Messages */
.error {
  color: #e74c3c;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.success {
  color: #27ae60;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.validation-msg {
  text-align: center;
  font-size: 0.9rem;
  margin: 5px 0 10px;
  font-weight: 500;
}

.validation-msg.success {
  color: #2ecc71;
}

.validation-msg.error {
  color: #e74c3c;
}

.validation-msg.loading::after {
  content: '⏳ Validating...';
  color: #3498db;
}

/* Responsive */
@media (max-width: 500px) {
  .login-container {
    padding: 2rem;
  }

  input,
  button,
  .btn-submit {
    font-size: 0.95rem;
    padding: 10px;
  }
}
