

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.worker-auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  color: #0f172a;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08)),
    #eef4fb;
}

.worker-auth-shell {
  min-height: 100vh;
  display: block;
  padding: 24px;
}

.worker-panel,
.shift-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.worker-brand-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 48px);
}

.worker-logo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  background: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.worker-brand-title {
  margin-top: 24px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.worker-brand-text {
  margin-top: 14px;
  font-size: 18px;
  color: #64748b;
  line-height: 1.7;
}

.worker-status-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.worker-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 15px;
  color: #475569;
}

.worker-status-item i {
  color: #2563eb;
}

.worker-form-panel {
  min-height: calc(100vh - 48px);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.worker-login-panel {
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background:
    radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.11), transparent 28%),
    radial-gradient(circle at 18% 86%, rgba(20, 184, 166, 0.08), transparent 26%),
    rgba(255, 255, 255, 0.96);
}

.login-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.worker-password-card {
  width: min(100%, 600px);
  padding: 40px;
  border-color: #dbe5f1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.login-system-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.login-card-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #2563eb;
  font-size: 26px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.login-system-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
}

.login-system-brand span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.login-card-heading {
  margin-top: 26px;
}

.login-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-card h1,
.shift-header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}

.login-card p,
.shift-header p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.worker-button {
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  cursor: pointer;
}

.worker-button.primary {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.worker-button.green {
  border-color: #16a34a;
  color: #fff;
  background: #16a34a;
}

.worker-button:active,
.shift-card:active {
  transform: scale(0.98);
}

.worker-form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.worker-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}

.worker-input-wrap {
  position: relative;
}

.worker-input-wrap > i {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #94a3b8;
}

.worker-field input {
  width: 100%;
  min-height: 60px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 52px;
  font-size: 18px;
  outline: none;
}

.worker-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 6px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}

.worker-password-card .worker-button.primary {
  width: 100%;
  min-height: 60px;
  margin-top: 4px;
  font-size: 18px;
}

.login-help {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.login-help i {
  margin-top: 4px;
  color: #2563eb;
}

.worker-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.worker-message.show {
  display: block;
}

.worker-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.worker-message.success {
  background: #dcfce7;
  color: #166534;
}

.shift-shell {
  min-height: 100vh;
  padding: 24px;
}

.shift-panel {
  min-height: calc(100vh - 48px);
  padding: 28px;
}

.shift-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shift-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.shift-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shift-card {
  position: relative;
  width: 100%;
  text-align: left;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  cursor: pointer;
  min-height: 178px;
}

.shift-card.recommended {
  border-color: #22c55e;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.16);
}

.shift-card.history {
  background: #f8fafc;
}

.shift-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shift-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.shift-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #166534;
  background: #dcfce7;
}

.shift-meta {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 700;
}

.shift-meta i {
  width: 20px;
  color: #2563eb;
}

.shift-empty {
  margin-top: 24px;
  padding: 36px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.utility-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 1000px) {
  .shift-grid {
    grid-template-columns: 1fr;
  }

  .worker-form-panel {
    min-height: auto;
  }

  .worker-login-panel {
    min-height: calc(100vh - 48px);
    padding: 40px 24px;
  }
}

@media (max-width: 640px) {
  .worker-auth-shell {
    padding: 12px;
    gap: 12px;
  }

  .worker-brand-panel {
    padding: 24px;
  }

  .worker-password-card {
    padding: 28px 22px;
  }

  .login-system-brand strong {
    font-size: 20px;
  }
}
