??/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fcd34d;
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --border: rgba(245,158,11,0.2);
  --glass: rgba(30,41,59,0.85);
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark-900);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 20px 12px;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-anim {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(245,158,11,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.06) 0%, transparent 60%),
              linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float linear infinite;
}
.particle:nth-child(1) { width:60px;height:60px;background:var(--amber);top:15%;left:10%;animation-duration:18s;animation-delay:0s; }
.particle:nth-child(2) { width:40px;height:40px;background:var(--amber-dark);top:70%;left:80%;animation-duration:22s;animation-delay:-5s; }
.particle:nth-child(3) { width:80px;height:80px;background:var(--amber);top:40%;left:60%;animation-duration:16s;animation-delay:-8s; }
.particle:nth-child(4) { width:30px;height:30px;background:var(--amber-light);top:85%;left:30%;animation-duration:25s;animation-delay:-3s; }
.particle:nth-child(5) { width:50px;height:50px;background:var(--amber-dark);top:5%;left:70%;animation-duration:20s;animation-delay:-10s; }
.particle:nth-child(6) { width:70px;height:70px;background:var(--amber);top:55%;left:5%;animation-duration:14s;animation-delay:-6s; }

@keyframes float {
  0%   { transform: translateY(0)   rotate(0deg);   opacity:0.12; }
  50%  { transform: translateY(-60px) rotate(180deg); opacity:0.2; }
  100% { transform: translateY(0)   rotate(360deg); opacity:0.12; }
}

/* ===== LAYOUT ===== */
.login-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 900px;
  max-width: 98vw;
  min-height: 580px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}

/* ===== BRAND PANEL (left) ===== */
.brand-panel {
  width: 42%;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}
.brand-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(245,158,11,0.07) 0%, transparent 60%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity:0.7; }
  50%      { transform: scale(1.1); opacity:1; }
}

.brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.logo-area {
  margin-bottom: 20px;
}
.brand-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(245,158,11,0.4));
  animation: glow 3s ease-in-out infinite;
}
.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(245,158,11,0.4));
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
  0%,100% { filter: drop-shadow(0 0 12px rgba(245,158,11,0.4)); }
  50%      { filter: drop-shadow(0 0 28px rgba(245,158,11,0.7)); }
}

.brand-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.brand-title span {
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background 0.2s;
}
.feature-item:hover { background: rgba(245,158,11,0.12); }
.feat-icon { font-size: 1.1rem; }

/* ===== FORM PANEL (right) ===== */
.form-panel {
  flex: 1;
  background: var(--glass);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.form-card {
  width: 100%;
  max-width: 360px;
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
}
.form-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.form-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.form-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== DEMO HINT ===== */
.demo-hint {
  background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.06) 100%);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.demo-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.demo-creds {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.demo-creds strong { color: var(--amber-light); }

/* ===== FORM FIELDS ===== */
.field-group {
  margin-bottom: 18px;
}
.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  z-index: 1;
}
.input-wrap input {
  width: 100%;
  background: rgba(15,23,42,0.7);
  border: 1.5px solid var(--dark-700);
  border-radius: 10px;
  padding: 13px 46px 13px 44px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input-wrap input:focus {
  border-color: var(--amber);
  background: rgba(15,23,42,0.9);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.input-wrap input::placeholder { color: var(--dark-600); }

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.toggle-pw:hover { opacity: 1; }

/* ===== ERROR ===== */
.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  text-align: center;
}

/* ===== LOGIN BUTTON ===== */
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-900);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.5);
}
.btn-login:active:not(:disabled) { transform: translateY(0); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; }

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(15,23,42,0.3);
  border-top-color: var(--dark-900);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SHAKE ANIMATION ===== */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
.shake { animation: shake 0.5s ease-in-out; }

/* ===== FOOTER ===== */
.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--dark-600);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .login-wrapper {
    flex-direction: column;
    border-radius: 16px;
    min-height: unset;
    width: 100%;
    max-width: 440px;
  }
  .brand-panel {
    width: 100%;
    padding: 28px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .brand-title  { font-size: 1.7rem; }
  .brand-subtitle { margin-bottom: 16px; }
  .brand-features { display: none; }
  .form-panel   { padding: 28px 24px; }
}

@media (max-width: 420px) {
  body { padding: 12px 8px; }
  .login-wrapper { border-radius: 14px; }
  .brand-panel   { padding: 22px 18px; }
  .form-panel    { padding: 22px 18px; }
  .brand-title   { font-size: 1.5rem; }
  .form-header h2 { font-size: 1.4rem; }
  .demo-creds    { flex-direction: column; gap: 4px; }
  .brand-logo, .logo-fallback { width: 64px; height: 64px; }
}
