/* Giao diện Đăng Nhập Hệ Thống Fleet Management & Bác Tài E68 */
:root {
  --bg-dark: #090d16;
  --bg-card: #151d30;
  --bg-card-border: #2c3a58;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-image: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

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

.brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-icon-big {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #1e293b 0%, #090d16 100%);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.28), 0 0 0 2px rgba(34, 211, 238, 0.25);
}

.brand-icon-big svg {
  width: 68px;
  height: 68px;
  display: block;
}

.brand-header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 10px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-control-login {
  width: 100%;
  height: 50px;
  background: #0b1120;
  border: 2px solid var(--bg-card-border);
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.05rem;
  padding: 0 16px;
  outline: none;
  transition: all 0.2s;
}

.form-control-login:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.btn-login {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:active {
  transform: scale(0.98);
}

.btn-login:focus-visible,
.btn-office-login:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.btn-login:disabled,
.btn-office-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.office-login-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.btn-office-login {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--radius);
  color: #7dd3fc;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-office-login:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #e0f2fe;
}

.btn-office-login:active:not(:disabled) {
  transform: scale(0.98);
}

.office-login-hint {
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.alert-box {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  color: #6ee7b7;
}

/* Gợi ý tài khoản nhanh */
.quick-login-box {
  margin-top: 24px;
  border-top: 1px solid var(--bg-card-border);
  padding-top: 18px;
}

.quick-login-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-align: center;
}

.quick-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-btn {
  background: #1e293b;
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.quick-btn:hover {
  background: #334155;
  color: #fff;
}
