/* ── Worker Login CSS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #0f1b2d;
  --navy-mid:     #162236;
  --navy-light:   #1e3050;
  --accent:       #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow:  rgba(59,130,246,0.25);
  --white:        #ffffff;
  --bg:           #f0f4f8;
  --text-primary: #1a2b42;
  --text-secondary: #64748b;
  --text-muted:   #94a3b8;
  --border:       #e2e8f0;
  --error:        #ef4444;
  --success:      #10b981;
  --radius:       10px;
  --shadow-card:  0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
}

body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Left Panel ── */
.panel-left {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  position: relative;
}

.brand-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.panel-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.panel-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 40px;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.feature-icon {
  width: 34px; height: 34px;
  background: rgba(59,130,246,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
  border: 1px solid rgba(59,130,246,0.2);
}

.panel-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* Decorative circles */
.deco {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.deco-1 { width: 400px; height: 400px; bottom: -120px; right: -120px; background: rgba(59,130,246,0.06); }
.deco-2 { width: 240px; height: 240px; bottom: 60px; right: 60px; border-color: rgba(255,255,255,0.04); }
.deco-3 { width: 120px; height: 120px; top: 120px; right: -30px; background: rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.1); }

/* ── Right Panel ── */
.panel-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  min-height: 100vh;
}

.login-box {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 44px 40px;
  border: 1px solid rgba(226,232,240,0.8);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Login Header */
.login-header { margin-bottom: 32px; }

.login-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(59,130,246,0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.forgot-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--accent-hover); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  display: flex; align-items: center;
  pointer-events: none;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 11px 42px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: #f8fafc;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.toggle-pass {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center;
  padding: 0;
  transition: color 0.2s;
}
.toggle-pass:hover { color: var(--text-primary); }

.field-error {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  min-height: 16px;
}

/* Remember */
.remember-row { margin-bottom: 16px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.checkbox-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Alert */
.alert-box {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border-left: 3px solid;
}

.alert-box.show { display: block; }
.alert-box.error   { background: rgba(239,68,68,0.06); color: #c0392b; border-color: var(--error); }
.alert-box.success { background: rgba(16,185,129,0.06); color: #0d7a5f; border-color: var(--success); }

/* Submit */
.btn-login {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius);
  border: none;
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.btn-login:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15,27,45,0.25);
}

.btn-login:active { transform: translateY(0); }
.btn-login.loading .btn-text { opacity: 0.5; }

.btn-loader {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-login.loading .btn-loader { display: block; }

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

/* Responsive */
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  .panel-left { display: none; }
  .panel-right {
    background: var(--navy);
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .login-box { padding: 32px 24px; }
}