/* ╔══════════════════════════════════════════════════════════════╗
   ║  WEBYAZ RESTAURANT — Premium Fresh Light Login Page Styles  ║
   ╚══════════════════════════════════════════════════════════════╝ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8FAFC;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  overflow: hidden;
  position: relative;
}

/* 🌌 Soft Ambient Background Blobs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: floatBg 25s infinite alternate ease-in-out;
}

body::before {
  background: radial-gradient(circle, #FFE4D6 0%, #FFD8C9 100%);
  top: -10%;
  left: -10%;
}

body::after {
  background: radial-gradient(circle, #E0E7FF 0%, #C7D2FE 100%);
  bottom: -10%;
  right: -10%;
  animation-delay: -12s;
}

@keyframes floatBg {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

.login-container {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  z-index: 10;
}

/* 🏢 Premium Fresh Card */
.login-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 48px 36px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04), 
              0 5px 15px rgba(15, 23, 42, 0.02),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #6366f1);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: logoPulse 3s infinite alternate ease-in-out;
}

.login-logo img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

@keyframes logoPulse {
  0% { transform: translateY(0); filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.12)); }
  100% { transform: translateY(-3px); filter: drop-shadow(0 6px 18px rgba(99, 102, 241, 0.18)); }
}

.login-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 32px;
  font-weight: 500;
}

/* ⚠️ Error Messages */
.login-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 8px;
  animation: shake 0.4s ease-in-out;
}

.login-error.active {
  display: flex;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ⌨️ Form Fields */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748B;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.login-input, .form-input {
  width: 100% !important;
  padding: 13px 16px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  color: #0F172A !important;
  font-family: inherit !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
}

.login-input::placeholder, .form-input::placeholder {
  color: #94A3B8 !important;
}

.login-input:hover, .form-input:hover {
  border-color: #CBD5E1 !important;
}

.login-input:focus, .form-input:focus {
  outline: none !important;
  border-color: #ff6b35 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12) !important;
}

/* Password Toggle Icon Button */
#toggle-pw {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

#toggle-pw:hover {
  color: #475569;
  background: #F1F5F9;
}

/* ⚡ Glowing Login Button */
.login-btn {
  width: 100%;
  padding: 15px;
  margin-top: 12px;
  background: linear-gradient(135deg, #ff6b35 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.25);
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.35);
  background: linear-gradient(135deg, #ff7e4f 0%, #ff6b35 100%);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.login-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.login-btn.loading #login-btn-text {
  display: none;
}

.login-btn.loading #login-spinner {
  display: block;
}

.login-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 🔗 Links and Register Button UI */
.login-links {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
}

.login-links a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.login-links a:hover {
  color: #ea580c;
  text-decoration: underline;
}

/* 👩‍💻 Quick Switcher Roles */
.login-roles {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
}

.login-roles-title {
  text-align: center;
  font-size: 0.68rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  font-weight: 800;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.role-btn {
  padding: 10px 4px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.role-btn:hover {
  background: #FFF7F5;
  border-color: rgba(255, 107, 53, 0.5);
  color: #ff6b35;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.08);
}



@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px;
  }
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
