@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1a1612;
  --ink-muted: #6b6560;
  --gold: #c9a84c;
  --gold-light: #e8d5a0;
  --cream: #fdf9f3;
  --surface: #ffffff;
  --border-soft: rgba(26, 22, 18, 0.08);
  --error: #b84040;
}




/* ─── WRAPPER ─── */
.wrapper {
  width: 860px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26,22,18,0.06), 0 24px 80px rgba(26,22,18,0.14);
  position: relative;
  z-index: 1;
}

/* ─── BRAND PANEL ─── */
.brand-panel {
  background: var(--ink);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(201,168,76,0.025) 0px,
    rgba(201,168,76,0.025) 1px,
    transparent 1px,
    transparent 28px
  );
  pointer-events: none;
}

/* Logo */
.logo-lockup { display: flex; align-items: center; gap: 11px; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.logo-tagline {
  font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.26em;
  color: rgba(201,168,76,0.55);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Brand copy */
.brand-content { padding: 8px 0; }
.brand-eyebrow {
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.brand-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px; font-weight: 300;
  line-height: 1.13; color: var(--cream); margin-bottom: 22px;
}
.brand-headline em { font-style: italic; color: var(--gold-light); }
.brand-desc {
  font-size: 12.5px; font-weight: 300;
  color: rgba(253,249,243,0.45); line-height: 1.85; max-width: 248px;
}
.brand-divider { width: 36px; height: 1px; background: var(--gold); margin: 28px 0; opacity: 0.45; }

.brand-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-item { padding: 14px; border: 0.5px solid rgba(201,168,76,0.16); border-radius: 4px; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 300; color: var(--gold-light); line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: 9px; font-weight: 400; letter-spacing: 0.09em; color: rgba(253,249,243,0.32); text-transform: uppercase; }

.corner-ornament { position: absolute; bottom: 22px; right: 22px; opacity: 0.055; pointer-events: none; }

/* ─── FORM PANEL ─── */
.form-panel { background: var(--surface); display: flex; flex-direction: column; }

.form-tabs { display: flex; border-bottom: 1px solid var(--border-soft); }
.tab-btn {
  flex: 1; padding: 19px 22px;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 11.5px;
  font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(26,22,18,0.32); transition: color .25s; position: relative;
}
.tab-btn::after {
  content: '';
  position: absolute; bottom: -1px; left: 22px; right: 22px;
  height: 1.5px; background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  transform-origin: left;
}
.tab-btn.active { color: var(--ink); }
.tab-btn.active::after { transform: scaleX(1); }

.form-bodies { flex: 1; }
.form-body { display: none; padding: 36px 44px 44px; animation: fadeSlide .28s ease; }
.form-body.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Headings */
.form-greeting { margin-bottom: 30px; }
.greeting-line { font-size: 9.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.greeting-title { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 400; color: var(--ink); line-height: 1.15; }
.greeting-title em { font-style: italic; color: var(--ink-muted); }

/* Fields */
.field-group { margin-bottom: 17px; }
.field-label { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.field-wrap { position: relative; }
.field-wrap svg.field-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; stroke: var(--ink-muted); stroke-width: 1.5; fill: none;
  opacity: 0.45; transition: opacity .2s, stroke .2s; pointer-events: none;
}
.field-input {
  width: 100%; height: 44px; padding: 0 14px 0 38px;
  border: 1px solid var(--border-soft); border-radius: 2px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400;
  color: var(--ink); background: var(--cream); outline: none;
  transition: border-color .2s, background .2s;
}
.field-input::placeholder { color: rgba(26,22,18,0.22); font-weight: 300; }
.field-input:focus { border-color: var(--gold); background: #fffdf7; }
.field-input:focus + svg.field-icon { opacity: 1; stroke: var(--gold); }
.field-input[type="password"] { letter-spacing: .1em; }
.field-input[type="password"]::placeholder { letter-spacing: .01em; }

.error-msg { margin-top: 6px; font-size: 11px; color: var(--error); display: none; }
.error-msg.visible { display: block; }

.form-row { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.forgot-link { font-size: 11px; color: var(--ink-muted); text-decoration: none; letter-spacing: .04em; transition: color .2s; border-bottom: .5px solid transparent; }
.forgot-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Submit button with logo */
.submit-btn {
  width: 100%; height: 48px;
  background: var(--ink); color: var(--cream); border: none; border-radius: 2px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: background .25s, transform .15s;
  position: relative; overflow: hidden;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}
.submit-btn:hover::before { transform: translateX(100%); }
.submit-btn:hover { background: #272018; }
.submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Decorative */
.gold-line { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.25; margin-bottom: 17px; }
.footer-note { text-align: center; font-size: 10.5px; color: rgba(26,22,18,0.32); line-height: 1.75; }
.footer-note span { color: var(--gold); }

/* Two-col layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Spinner */
@keyframes medom-spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 680px) {
  .wrapper { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-body { padding: 28px 24px 36px; }
}
/* employee list */
/* Fade */
.medom-fade {
  animation: fade 0.3s ease;
}

/* Notice */
.medom-notice {
  background: rgba(201,168,76,0.06);
  border: 0.5px solid rgba(201,168,76,0.22);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 12px;
}

/* Filters */
.medom-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.medom-field label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.medom-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--border-soft);
  background: var(--cream);
  padding: 0 10px;
  border-radius: 2px;
}

.medom-input input,
.medom-input select {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
}

/* Focus */
.medom-input:focus-within {
  border-color: var(--gold);
  background: #fffdf7;
}

/* Actions */
.medom-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* Table */
.medom-table-wrap {
  overflow-x: auto;
}

.medom-table {
  width: 100%;
  border-collapse: collapse;
}

.medom-table th {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 10px;
}

.medom-table td {
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}

/* Name cell */
.medom-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Avatar */
.medom-avatar {
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
}

/* Empty */
.medom-empty {
  text-align: center;
  padding: 40px;
  color: var(--ink-muted);
}

/* Animation */
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* emploee list */