/* -----------------------------------------
   Ai-Orders Login Page
   Full-Size & Responsive for All Devices
   ----------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --gradient: linear-gradient(135deg, #E84B5F, #FF9F6E);
  --radius: 20px;
  --shadow: 0 8px 28px rgba(0,0,0,0.15);
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* --- Login Card --- */
.login-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 600px;
  max-width: 95%;
  padding: 4rem 3rem;
  text-align: center;
  animation: fadeIn 0.6s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

/* --- Logo --- */
.login-logo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 1.6rem;
}

/* --- Title --- */
.login-title {
  font-weight: 600;
  color: #333;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* --- Form Controls --- */
.form-control {
  border-radius: 16px;
  padding: 18px 16px;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #E84B5F;
  box-shadow: 0 0 0 0.3rem rgba(232,75,95,0.1);
}

/* --- Eye Icon Button (Inside Input) --- */
.toggle-btn {
  border: none;
  background: transparent;
  position: absolute;
  right: 20px;
  top: 64%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.toggle-btn i {
  color: #E84B5F;
  font-size: 1.3rem;
  transition: color 0.2s ease;
}

.toggle-btn:hover i {
  color: #FF9F6E;
}

/* --- Buttons --- */
.btn-brand {
  background: var(--gradient);
  border: none;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  font-weight: 600;
  font-size: 1.2rem;
  width: 100%;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.btn-brand:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.btn-brand:active {
  transform: scale(0.98);
}

/* --- Forgot Password --- */
.forgot-link {
  display: block;
  text-align: right;
  font-size: 1rem;
  color: #E84B5F;
  margin-top: 14px;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #FF9F6E;
}

/* --- Alerts --- */
.alert {
  font-size: 1rem;
  border-radius: 14px;
  text-align: left;
  margin-bottom: 1.5rem;
}

/* --- Animation --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Breakpoints --- */

/* Tablets (≤992px) */
@media (max-width: 992px) {
  .login-card {
    width: 90%;
    padding: 3rem 2.5rem;
  }

  .login-logo img {
    width: 120px;
    height: 120px;
  }

  .login-title {
    font-size: 1.8rem;
  }

  .form-control {
    padding: 16px;
    font-size: 1rem;
  }

  .btn-brand {
    font-size: 1.1rem;
    padding: 16px;
  }

  .toggle-btn {
    right: 16px;
    top: 60%;
  }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
  body {
    padding: 1.5rem;
  }

  .login-card {
    width: 100%;
    padding: 2.5rem 1.8rem;
  }

  .login-logo img {
    width: 100px;
    height: 100px;
  }

  .login-title {
    font-size: 1.6rem;
  }

  .form-control {
    padding: 14px;
    font-size: 1rem;
  }

  .btn-brand {
    padding: 14px;
    font-size: 1rem;
  }

  .forgot-link {
    text-align: center;
    margin-top: 16px;
  }

  .toggle-btn {
    right: 14px;
    top: 60%;
  }
}

/* Ultra-small (≤400px) */
@media (max-width: 400px) {
  .login-card {
    padding: 2rem 1.2rem;
  }

  .login-logo img {
    width: 90px;
    height: 90px;
  }

  .login-title {
    font-size: 1.3rem;
  }

  .form-control, .btn-brand {
    font-size: 0.95rem;
    padding: 12px;
  }

  .toggle-btn {
    right: 12px;
  }
}
