/* =========================================================
   admin-login.css
   Style specific for Admin Login Page and Customer
   Registration Page
   ========================================================= */


body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #004d1a, #017a33);
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ======= Intro Animation ======= */
.intro-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #01511b, #01913b);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeOut 2s ease 1s forwards;
}

.intro-icon {
  font-size: 80px;
  color: #fff;
  animation: pulse 1.2s infinite alternate;
}

.intro-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

/* Intro Animations */
@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; text-shadow: 0 0 6px #00ff88; }
  to { transform: scale(1.15); opacity: 1; text-shadow: 0 0 15px #00ffcc; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* ======= Login Container ======= */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1581091215367-59ab6c5b36f3?auto=format&fit=crop&w=1400&q=80') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.login-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.login-container.show {
  opacity: 1;
  pointer-events: all;
}

/* ======= Login Card ======= */
.login-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  padding: 40px 30px;
  width: 90%;
  max-width: 400px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 1.2s ease 2.2s forwards;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}

/* ======= Inputs ======= */
.login-header i {
  font-size: 48px;
  color: #00ff99;
  margin-bottom: 8px;
  text-shadow: 0 0 12px #00ffcc;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 42px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
  font-size: 14px;
  transition: background 0.3s;
}

.input-group input::placeholder {
  color: #ddd;
}

.input-group input:focus {
  background: rgba(255,255,255,0.25);
}

/* ======= Button ======= */
.btn-login {
  width: 100%;
  background: #00b35a;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
  background: #00cc66;
  transform: scale(1.03);
}

/* ======= Footer ======= */
footer {
  margin-top: 25px;
  font-size: 12px;
  color: #ccc;
}

/* Specific to Register page*/ 
.login-header i.fa-user-plus {
  color: #ffb400;
  text-shadow: 0 0 10px #ffd966;
}



/* ======= Responsive ======= */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
  .intro-title {
    font-size: 22px;
  }
}
