/* ===== LOGIN PAGE STYLES (WHITE BG & BLUE BUTTONS) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --secondary: #3B82F6;
  --accent: #60A5FA;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-surface: #F1F5F9;
  --border: #E2E8F0;
  --border-input: #CBD5E1;
  --border-focus: #2563EB;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --success: #16A34A;
  --error: #DC2626;
  --gradient: linear-gradient(135deg, #2563EB, #1D4ED8);
  --shadow-card: 0 20px 45px -10px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
}

.login-bg {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 45%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 55%),
    var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  animation: float linear infinite;
}

@keyframes float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1120px;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* LEFT BRANDING PANEL */
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 50%, #EFF6FF 100%);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.brand-logo {
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

.login-hero h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.login-hero p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 36px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.feature-item:hover {
  border-color: #2563EB;
  color: #1E40AF;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.ficon {
  font-size: 18px;
}

/* RIGHT FORM PANEL */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-page);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.login-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 26px;
}

.role-tabs {
  display: flex;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.role-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.role-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.7;
}

.input-wrap input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-input);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s;
}

.toggle-pass:hover {
  color: var(--primary);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.remember-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
}

.remember-check input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.forgot-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* BLUE SUBMIT BUTTON */
.btn-login {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden { display: none !important; }

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

/* CREDENTIALS CARD */
.demo-creds {
  margin-top: 24px;
  padding: 16px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.demo-creds p {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.cred-item {
  font-size: 13px;
  color: #334155;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cred-item:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
  transform: translateX(2px);
}

.cred-item strong {
  color: var(--primary);
}

.login-footer {
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
  margin-top: 24px;
}

@media (max-width: 840px) {
  .login-wrapper { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { min-height: 100vh; padding: 24px; }
  .login-card { padding: 30px 24px; }
}
