/* =========================================
   SwiftShip Global — Admin Login Styles
   ========================================= */

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #e2e8f0;
  overflow: hidden;
  position: relative;
}

/* ── Background ── */
.login-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.c1 { width: 500px; height: 500px; background: #e8612d; top: -150px; right: -100px; }
.c2 { width: 400px; height: 400px; background: #1d4ed8; bottom: -100px; left: -80px; }
.c3 { width: 300px; height: 300px; background: #7c3aed; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* ── Wrapper ── */
.login-wrapper {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

/* ── Brand ── */
.brand {
  display: flex; align-items: center; gap: 14px;
}
.brand-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #e8612d, #f59e0b);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  box-shadow: 0 8px 20px rgba(232,97,45,0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 24px; font-weight: 700; color: #fff; }
.brand-tag  { font-size: 10px; font-weight: 600; letter-spacing: 2px; color: #94a3b8; }

/* ── Card ── */
.login-card {
  width: 100%;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.card-header { text-align: center; margin-bottom: 24px; }
.card-header h1 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.card-header p  { font-size: 13px; color: #94a3b8; }

/* ── Alerts ── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; margin-bottom: 18px;
}
.alert-error   { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }

/* ── Form ── */
.form-group { margin-bottom: 18px; }
label {
  display: block; font-size: 13px; font-weight: 500;
  color: #cbd5e1; margin-bottom: 6px;
}
.input-wrapper {
  position: relative;
}
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #64748b; font-size: 14px; pointer-events: none;
}
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 14px;
  transition: border-color .2s, background .2s;
  outline: none;
}
input:focus {
  border-color: #e8612d;
  background: rgba(255,255,255,0.09);
}
input::placeholder { color: #475569; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #64748b; font-size: 14px; padding: 4px;
  transition: color .2s;
}
.toggle-pw:hover { color: #e8612d; }
.field-error { display: block; color: #f87171; font-size: 12px; margin-top: 4px; }

/* ── Row ── */
.form-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #94a3b8; cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 15px; height: 15px; padding: 0;
  accent-color: #e8612d;
}
.link-btn {
  background: none; border: none; cursor: pointer;
  color: #e8612d; font-size: 13px; font-weight: 500;
}
.link-btn:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #e8612d, #f59e0b);
  color: #fff;
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login:hover:not(:disabled) { opacity: 0.88; }
.btn-login:active:not(:disabled) { transform: scale(0.98); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  padding: 11px 20px;
  background: rgba(255,255,255,0.07);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.spinner { display: inline-flex; align-items: center; }

/* ── Forgot form ── */
.forgot-desc {
  font-size: 13px; color: #94a3b8;
  margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start;
  line-height: 1.6;
}
.forgot-actions {
  display: flex; gap: 10px; align-items: center;
}
.forgot-actions .btn-login { flex: 1; }

/* ── Back link ── */
.back-link a {
  color: #64748b; text-decoration: none; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.back-link a:hover { color: #e8612d; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
}
