:root {
  --taskbar-height: 46px;
  --bg-dark: #04101d;
  --bg-mid: #0d2f53;
  --bg-light: #1a5c96;
  --panel: rgba(9, 25, 43, 0.84);
  --panel-border: rgba(114, 171, 227, 0.28);
  --text: #eaf5ff;
  --label: #aacbec;
  --input-bg: rgba(5, 19, 33, 0.9);
  --input-border: rgba(123, 178, 232, 0.45);
  --accent: #2aa1ff;
  --accent-hover: #53b3ff;
  --shadow: rgba(3, 12, 21, 0.62);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(48, 129, 204, 0.35) 0%, transparent 34%),
    radial-gradient(circle at 90% 85%, rgba(23, 92, 157, 0.38) 0%, transparent 33%),
    linear-gradient(165deg, var(--bg-dark), var(--bg-mid) 56%, var(--bg-light));
  display: grid;
  place-items: center;
  overflow-x: hidden;
  padding: 1.2rem;
}

.background-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.background-shape-a {
  top: -150px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: rgba(31, 119, 194, 0.45);
}

.background-shape-b {
  right: -120px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  background: rgba(22, 84, 142, 0.52);
}

body.logged-in {
  display: block;
  padding: 0;
  background: #000;
  overflow: hidden;
}

body.logged-in .background-shape {
  display: none;
}

body.logged-in .login-screen {
  display: none;
}

.login-screen {
  width: min(520px, 100%);
  padding: 2rem 1.4rem;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(6, 22, 38, 0.9), rgba(10, 31, 54, 0.78));
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 52px var(--shadow);
  animation: fade-in 420ms ease-out;
}

.desktop-view {
  display: none;
}

.app-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: calc(100vh - var(--taskbar-height)) !important;
  min-width: 100vw;
  min-height: calc(100vh - var(--taskbar-height));
  max-width: 100vw;
  max-height: calc(100vh - var(--taskbar-height));
  border-radius: 0;
}

.desktop-view.is-visible {
  position: fixed;
  inset: 0;
  display: block;
  background-image: url("assets/GM-Desktop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.desktop-icons {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  z-index: 2;
}

.desktop-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.75rem;
  background: linear-gradient(180deg, rgba(187, 190, 194, 0.94), rgba(123, 127, 132, 0.96));
  border-top: 1px solid rgba(82, 87, 93, 0.9);
  box-shadow: 0 -6px 16px rgba(9, 15, 20, 0.35);
  z-index: 25;
}

.desktop-taskbar-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.taskbar-datetime {
  display: grid;
  justify-items: end;
  min-width: 140px;
  padding: 0;
  color: #f4f8fc;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.taskbar-datetime span:first-child {
  font-size: 0.93rem;
}

.taskbar-logout-btn {
  margin-top: 0;
  border-radius: 7px;
  padding: 0.44rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1;
  color: #f4f8fd;
  background: linear-gradient(180deg, #6f747b, #575d65);
  border: 1px solid rgba(56, 61, 67, 0.8);
}

.taskbar-logout-btn:hover {
  background: linear-gradient(180deg, #626871, #4b525b);
  transform: none;
}

.app-window {
  position: absolute;
  left: 12rem;
  top: 5.2rem;
  width: min(980px, 78vw);
  height: min(620px, 76vh);
  min-width: 520px;
  min-height: 320px;
  max-width: 95vw;
  max-height: 90vh;
  display: none;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(248, 252, 255, 0.96);
  border: 1px solid rgba(148, 188, 227, 0.58);
  box-shadow: 0 20px 48px rgba(4, 21, 38, 0.5);
}

.app-window-akquise {
  left: 4.5rem;
  top: 4.2rem;
  width: min(940px, 76vw);
  height: min(600px, 74vh);
}

.app-window.is-open {
  display: block;
}

.window-resize-handle {
  position: absolute;
  z-index: 5;
}

.handle-n,
.handle-s {
  left: 10px;
  right: 10px;
  height: 8px;
}

.handle-n {
  top: -4px;
  cursor: ns-resize;
}

.handle-s {
  bottom: -4px;
  cursor: ns-resize;
}

.handle-e,
.handle-w {
  top: 10px;
  bottom: 10px;
  width: 8px;
}

.handle-e {
  right: -4px;
  cursor: ew-resize;
}

.handle-w {
  left: -4px;
  cursor: ew-resize;
}

.handle-ne,
.handle-nw,
.handle-se,
.handle-sw {
  width: 12px;
  height: 12px;
}

.handle-ne {
  top: -6px;
  right: -6px;
  cursor: nesw-resize;
}

.handle-nw {
  top: -6px;
  left: -6px;
  cursor: nwse-resize;
}

.handle-se {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}

.handle-sw {
  left: -6px;
  bottom: -6px;
  cursor: nesw-resize;
}

.app-window-titlebar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.45rem 0 0.7rem;
  background: linear-gradient(180deg, #f7fbff, #dfecf8);
  border-bottom: 1px solid #bfd5ea;
  cursor: move;
  user-select: none;
}

.app-window-title-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-window-title-left img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.app-window-title-left h2 {
  margin: 0;
  font-size: 0.96rem;
  color: #12314e;
  font-weight: 600;
}

.app-window-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.app-window-maximize,
.app-window-close {
  width: 32px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #214462;
  background: #e6f1fb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.app-window-maximize {
  font-size: 0.82rem;
}

.app-window-maximize:hover {
  color: #ffffff;
  background: #2f84d4;
}

.app-window-close:hover {
  color: #ffffff;
  background: #d74b4b;
}

.app-window-content {
  height: calc(100% - 44px);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  display: grid;
  grid-template-columns: 220px 1fr;
}


.admin-toast {
  position: absolute;
  top: 54px;
  right: 14px;
  min-width: 260px;
  max-width: 420px;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #9fc2df;
  background: rgba(233, 245, 255, 0.98);
  color: #1f4e72;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(17, 47, 74, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.is-ok {
  border-color: #80c9a3;
  background: rgba(227, 250, 236, 0.98);
  color: #17643d;
}

.admin-toast.is-error {
  border-color: #e0a3a3;
  background: rgba(255, 240, 240, 0.98);
  color: #9e2f2f;
}

.admin-sidebar {
  padding: 0.8rem;
  border-right: 1px solid #d0e2f3;
  background: linear-gradient(180deg, #f6fbff, #eaf3fb);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-nav-item {
  border: 1px solid #c6dcef;
  border-radius: 8px;
  background: #ffffff;
  color: #173a58;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  padding: 0.58rem 0.62rem;
  cursor: pointer;
}

.admin-nav-item.is-active {
  background: #ddecfa;
  border-color: #9ac0e2;
}

.akquise-nav-item {
  border: 1px solid #c6dcef;
  border-radius: 8px;
  background: #ffffff;
  color: #173a58;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  padding: 0.58rem 0.62rem;
  cursor: pointer;
}

.akquise-nav-item.is-active {
  background: #ddecfa;
  border-color: #9ac0e2;
}

.akquise-card p {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: #2f5a7a;
  font-weight: 600;
}

.akquise-settings-full {
  min-width: 0;
}

.akquise-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.akquise-layout .employee-card:last-child {
  overflow-y: auto;
}

.akquise-settings-full .employee-card {
  overflow: auto;
}

#akquiseFieldServicePanel {
  margin-left: -0.35rem;
}

#akquiseFieldServicePanel .employee-layout {
  grid-template-columns: 1fr 1.25fr;
  gap: 1.05rem;
}

#akquiseFieldServicePanel .employee-card {
  min-width: 0;
}

#akquiseFieldServicePanel .employee-card:last-child {
  max-width: none;
}

.admin-settings {
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.48rem;
  color: #184061;
  min-height: 0;
  overflow-y: auto;
}

.admin-settings h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.admin-panel {
  margin-top: 0.2rem;
}

.admin-panel-hidden {
  display: none;
}

.employee-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 0.9rem;
  min-height: 0;
}

.role-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.9rem;
  min-height: 0;
}

.employee-card {
  border: 1px solid #cfe0f0;
  border-radius: 10px;
  background: #f9fcff;
  padding: 0.7rem;
  min-height: 0;
}

.employee-layout .employee-card:last-child {
  overflow-y: auto;
}

.role-layout .employee-card:last-child {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  overflow-y: auto;
}

.permission-list {
  display: grid;
  gap: 0.36rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  border: 1px solid #d5e5f3;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.28rem 0.42rem;
}

.admin-settings .permission-name-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  color: #214a69;
  outline: none;
}

.permission-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #2f84d4;
}

.employee-card h4 {
  margin: 0 0 0.5rem;
  color: #174363;
  font-size: 0.98rem;
}

.employee-table-message {
  margin: 0 0 0.45rem;
  min-height: 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #285170;
}

.employee-table-message.is-ok {
  color: #18854f;
}

.employee-table-message.is-error {
  color: #c23f3f;
}

.employee-table-wrap {
  max-height: 250px;
  overflow: auto;
  border: 1px solid #d8e6f4;
  border-radius: 8px;
  background: #ffffff;
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: #1a4363;
}

.employee-table th,
.employee-table td {
  text-align: left;
  border-bottom: 1px solid #e4eef8;
  padding: 0.42rem 0.45rem;
  vertical-align: top;
}

.employee-table thead th {
  position: sticky;
  top: 0;
  background: #edf5fd;
  z-index: 1;
}

.employee-delete-btn {
  border: 0;
  border-radius: 6px;
  padding: 0.28rem 0.46rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: #cb4b4b;
  cursor: pointer;
}

.employee-delete-btn:hover {
  background: #b23f3f;
}

.employee-inline-input {
  width: min(220px, 100%);
  margin: 0;
  padding: 0.38rem 0.45rem;
  border: 1px solid #b9d4ea;
  border-radius: 7px;
  font-size: 0.82rem;
  color: #163854;
  background: #ffffff;
}

.employee-inline-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.call-contact-btn {
  margin-top: 0;
  border: 0;
  border-radius: 6px;
  padding: 0.34rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(120deg, #13805f, #1ea97f);
  cursor: pointer;
}

.call-contact-btn:hover {
  background: linear-gradient(120deg, #0f6a4f, #198e6b);
}

.employee-inline-save,
.employee-inline-clear {
  margin-top: 0;
  padding: 0.34rem 0.55rem;
  border-radius: 6px;
  font-size: 0.76rem;
  line-height: 1;
}

.employee-inline-save {
  color: #ffffff;
  background: linear-gradient(120deg, #2f84d4, #4da0ea);
}

.employee-inline-save:hover {
  background: linear-gradient(120deg, #2b77c0, #4394db);
}

.employee-inline-clear {
  color: #ffffff;
  background: #7d8792;
}

.employee-inline-clear:hover {
  background: #68717a;
}

.employee-form {
  display: grid;
  gap: 0.44rem;
}

.employee-form label {
  color: #2a506f;
  font-size: 0.86rem;
  font-weight: 600;
}

.employee-form input,
.employee-form select,
.employee-form textarea {
  width: 100%;
  border: 1px solid #b9d4ea;
  border-radius: 8px;
  padding: 0.52rem 0.6rem;
  font-size: 0.92rem;
  color: #163854;
  background: #ffffff;
}

.employee-form textarea {
  resize: vertical;
  min-height: 120px;
}

.employee-rights-title {
  margin: 0.22rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #244f70;
}

.employee-first-login-hint {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #3e6a8a;
  font-weight: 600;
}

.rights-preview {
  margin: 0;
  padding-left: 1rem;
  color: #2a516f;
  font-size: 0.84rem;
}

.employee-message {
  margin: 0.1rem 0 0;
  min-height: 1rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.employee-message.is-ok {
  color: #18854f;
}

.employee-message.is-error {
  color: #c23f3f;
}

.generic-admin-info {
  margin: 0.1rem 0 0;
  color: #295374;
  font-size: 0.92rem;
  font-weight: 600;
}

.system-data-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  max-width: 620px;
}

.system-data-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.call-window {
  position: absolute;
  top: 8rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 88vw);
  min-width: 320px;
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid #b7d0e6;
  background: #f7fcff;
  box-shadow: 0 22px 44px rgba(4, 21, 38, 0.45);
  display: none;
  z-index: 60;
  overflow: hidden;
}

.call-window.is-open {
  display: block;
}

.call-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: calc(100vh - var(--taskbar-height)) !important;
  max-width: 100vw;
  border-radius: 0;
  transform: none !important;
}

.call-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(180deg, #f7fbff, #dfecf8);
  border-bottom: 1px solid #bfd5ea;
  cursor: move;
  user-select: none;
}

.call-window-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #12314e;
}

.call-window-body {
  padding: 0.7rem;
  color: #1a4363;
  display: grid;
  gap: 0.36rem;
  max-height: calc(88vh - 44px - var(--taskbar-height));
  overflow: auto;
}

.call-window-body p {
  margin: 0;
}

.appointment-window {
  width: min(360px, 88vw);
  min-width: 300px;
  min-height: 430px;
  top: 8.4rem;
}

.appointment-calendar {
  border: 1px solid #c0d7eb;
  border-radius: 10px;
  padding: 0.42rem;
  background: #ffffff;
}

.appointment-calendar-toolbar {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.32rem;
}

.appointment-calendar-toolbar strong {
  text-align: center;
  color: #19466a;
  font-size: 0.86rem;
}

.appointment-calendar-nav {
  border: 1px solid #bcd5ea;
  border-radius: 7px;
  background: linear-gradient(180deg, #f8fcff, #e5f0f9);
  color: #1a4568;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  height: 28px;
}

.appointment-calendar-nav:hover {
  background: linear-gradient(180deg, #edf6fd, #dcecf8);
}

.appointment-calendar-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.appointment-calendar-weekdays,
.appointment-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.18rem;
}

.appointment-calendar-weekdays span {
  text-align: center;
  color: #4f6f8c;
  font-size: 0.74rem;
  font-weight: 700;
}

.appointment-calendar-day {
  border: 1px solid #c9def0;
  border-radius: 7px;
  height: 30px;
  background: #f8fbfe;
  color: #2c5372;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

.appointment-calendar-day.is-weekday {
  background: #e9f4ff;
  border-color: #94bde3;
  color: #0f4470;
  font-weight: 700;
}

.appointment-calendar-day.is-outside-month {
  opacity: 0.52;
}

.appointment-calendar-day.is-weekend {
  background: #f4f6f8;
  border-color: #d6dde4;
  color: #8b98a6;
  cursor: not-allowed;
}

.appointment-calendar-day.is-past {
  background: #f4f6f8;
  border-color: #d6dde4;
  color: #8b98a6;
  cursor: not-allowed;
}

.appointment-calendar-day.is-fully-booked {
  background: #f4f6f8;
  border-color: #d6dde4;
  color: #8b98a6;
  cursor: not-allowed;
}

.appointment-calendar-day.is-selected {
  background: linear-gradient(120deg, #2f84d4, #4da0ea);
  border-color: #2e78c0;
  color: #ffffff;
}

.call-action-title {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #244f70;
}

.call-action-buttons {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.call-action-btn.is-active {
  background: linear-gradient(120deg, #0f6a4f, #198e6b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}


.admin-settings label {
  color: #2a506f;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-settings input,
.admin-settings select {
  width: min(420px, 100%);
  border: 1px solid #b9d4ea;
  border-radius: 8px;
  padding: 0.56rem 0.65rem;
  font-size: 0.95rem;
  color: #163854;
  background: #ffffff;
}

.admin-save-btn {
  width: fit-content;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 8px;
  padding: 0.58rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(120deg, #2f84d4, #4da0ea);
  cursor: pointer;
}

.admin-save-btn:hover {
  background: linear-gradient(120deg, #2b77c0, #4394db);
}

.desktop-icon {
  position: relative;
  width: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.2rem;
  border-radius: 10px;
  user-select: none;
}

.desktop-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(1, 10, 20, 0.6));
}

.desktop-icon span {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #eef7ff;
  background: rgba(7, 24, 43, 0.72);
  border: 1px solid rgba(160, 204, 244, 0.35);
  text-shadow: 0 1px 2px rgba(2, 13, 24, 0.75);
}

.app-window-arbeitszeiten {
  width: min(640px, 86vw);
  min-height: 380px;
}

.arbeitszeiten-content {
  background: linear-gradient(145deg, #e8f2fb, #dceaf8);
  padding: 1rem;
}

.arbeitszeiten-card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(84, 128, 166, 0.28);
  border-radius: 16px;
  padding: 1rem;
  color: #13324a;
}

.arbeitszeiten-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.arbeitszeiten-card p {
  margin: 0;
  line-height: 1.5;
}

.arbeitszeiten-card img {
  width: min(220px, 62vw);
  height: auto;
}

.brand-logo {
  width: min(340px, 84%);
  max-height: 240px;
  object-fit: contain;
  margin-bottom: 0.9rem;
}

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.35rem, 3.3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.login-card {
  text-align: left;
  display: grid;
  gap: 0.62rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.login-message {
  margin: 0.1rem 0 0;
  min-height: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.first-login-panel {
  display: none;
  margin-top: 0.2rem;
  padding: 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(123, 178, 232, 0.45);
  background: rgba(4, 17, 30, 0.82);
}

.first-login-panel.is-visible {
  display: grid;
  gap: 0.45rem;
}

.first-login-info {
  margin: 0;
  font-size: 0.86rem;
  color: #9fd4ff;
  font-weight: 600;
}

.first-login-message {
  margin: 0;
  min-height: 1rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.first-login-message.is-error {
  color: #ff8b8b;
}

.set-first-password-btn {
  margin-top: 0.2rem;
  width: fit-content;
  border: 0;
  border-radius: 8px;
  padding: 0.52rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #052744;
  background: linear-gradient(120deg, #61bbff, #8dd2ff);
  cursor: pointer;
}

.login-message.is-error {
  color: #ff8b8b;
}

.login-message.is-success {
  color: #89f0b1;
}

label {
  font-size: 0.9rem;
  color: var(--label);
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.72rem 0.78rem;
  font-family: "Barlow", sans-serif;
  font-size: 0.96rem;
  margin-bottom: 0.4rem;
}

input::placeholder {
  color: #8eb6dd;
}

input:focus {
  outline: 2px solid rgba(83, 179, 255, 0.45);
  outline-offset: 1px;
}

button {
  margin-top: 0.3rem;
  border: 0;
  border-radius: 10px;
  padding: 0.78rem 1rem;
  font-family: "Barlow", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #03203a;
  background: linear-gradient(120deg, var(--accent), #79c7ff);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, var(--accent-hover), #8fd2ff);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .login-screen {
    padding: 1.4rem 1rem;
  }

  .login-card {
    padding: 0.9rem;
  }

  .taskbar-datetime {
    min-width: 118px;
    font-size: 0.78rem;
    padding: 0.18rem 0.36rem;
  }

  .taskbar-logout-btn {
    padding: 0.42rem 0.62rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 980px) {
  .employee-layout {
    grid-template-columns: 1fr;
  }

  .role-layout {
    grid-template-columns: 1fr;
  }

  #akquiseFieldServicePanel {
    margin-left: 0;
  }

  #akquiseFieldServicePanel .employee-layout {
    grid-template-columns: 1fr;
  }
}
