@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&display=swap");

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

:root {
  --bg: #f3f0ea;
  --card: #fffcf8;
  --border: #e4ddd2;
  --text: #161410;
  --text2: #6d675f;
  --sub: #6d675f;
  --muted: #6d675f;
  --accent: #8d6a32;
  --accent2: #c6a15b;
  --accent-light: #f4ecdf;
  --gold: #c6a15b;
  --gold-soft: #f4ecdf;
  --ink: #090b0e;
  --danger: #9d2c2c;
  --ok: #2f6b45;
  --line: #e4ddd2;
  --radius: 0px;
  --shadow: none;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

::selection {
  background: #c6a15b;
  color: #090b0e;
}

:focus-visible {
  outline: 1px solid #c6a15b;
  outline-offset: 2px;
}

.top-bar,
.header {
  background: #090b0e !important;
  border-bottom: 1px solid rgba(198, 161, 91, .32);
  box-shadow: none !important;
}

.top-bar {
  color: #f6f3ee;
}

.top-bar h1,
.top-bar .title,
.header h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: .03em;
}

.top-bar a.back,
.top-bar .back,
.header a {
  color: rgba(246, 243, 238, .66);
}

.top-bar a.back:hover,
.top-bar .back:hover {
  color: #e0c48a;
}

.card,
.section,
.tile,
.member-card,
.fun-card,
.upload-zone,
.file-item,
.confirm-panel,
.modal,
.user,
.kpi,
.box,
.home-card,
.history-item,
.history-panel,
.alert,
.pending-file,
.home-stat,
.home-history-item {
  border-radius: 0 !important;
}

input,
select,
textarea,
.toolbar .search,
.field input,
.field select,
.form-group input,
.form-group textarea,
.form-group select {
  border-radius: 0 !important;
}

.btn,
.confirm-btn,
.btn-primary,
.btn-secondary,
.btn-edit,
.modal-btn,
.filter-btn,
.nav-btn,
.mini-btn,
.avatar-btn,
.toggle-btn,
.home-back {
  border-radius: 0 !important;
}

.btn:hover,
.confirm-btn:hover,
.btn-primary:hover,
.modal-btn.save:hover,
.tile:hover,
.member-card:hover,
.file-item:hover {
  transform: none !important;
  box-shadow: none !important;
}

.confirm-btn,
.btn-primary,
.modal-btn.save {
  background: #c6a15b;
  color: #090b0e;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.confirm-btn:hover,
.btn-primary:hover,
.modal-btn.save:hover {
  background: #e0c48a;
}

.filter-btn.active,
.nav-btn.active {
  border-radius: 0 !important;
}

/* ===== AUTH ===== */
body.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.15rem;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(198, 161, 91, .14), transparent 46%),
    #090b0e;
  color: #f6f3ee;
}

.auth-wrap {
  width: min(440px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: #f6f3ee;
  margin-bottom: 1.25rem;
}

.auth-brand img {
  width: 42px;
  height: 48px;
  object-fit: contain;
}

.auth-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
}

.auth-brand em {
  display: block;
  margin-top: .22rem;
  font-style: normal;
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #c6a15b;
}

.auth-card {
  background: #f7f5f1;
  color: #161410;
  border: 1px solid rgba(198, 161, 91, .4);
  padding: 1.8rem 1.55rem 1.35rem;
  overflow: hidden;
}

.auth-card .eyebrow {
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #8d6a32;
}

.auth-card h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.45rem;
  line-height: .95;
  margin: .4rem 0 .35rem;
  letter-spacing: -.01em;
}

.auth-card .info {
  color: #6d675f;
  font-size: .9rem;
  line-height: 1.65;
  margin: .7rem 0 1.15rem;
}

.auth-card .field {
  margin-bottom: .8rem;
  text-align: left;
}

.auth-card label {
  display: block;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6d675f;
  margin-bottom: .32rem;
}

.auth-card form,
.auth-card .field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.auth-card input,
.auth-card .btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.auth-card input {
  padding: .72rem .8rem;
  border: 1px solid #e4ddd2;
  background: #fff;
  color: #161410;
  font: inherit;
  font-size: 16px;
}

.auth-card input:focus {
  outline: none;
  border-color: #c6a15b;
}

.auth-card small {
  display: block;
  margin-top: .28rem;
  color: #6d675f;
  font-size: .74rem;
}

.auth-card .btn {
  margin-top: .35rem;
  min-height: 48px;
  border: none;
  background: #c6a15b;
  color: #090b0e;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .7rem;
  font-family: inherit;
  cursor: pointer;
}

.auth-card .btn:hover {
  background: #e0c48a;
}

.auth-card .btn:disabled {
  opacity: .55;
  cursor: default;
}

.auth-card .links {
  margin-top: 1.15rem;
  font-size: .84rem;
  color: #6d675f;
  line-height: 1.7;
}

.auth-card .links a {
  color: #8d6a32;
  text-decoration: none;
}

.auth-card .links a:hover {
  color: #161410;
}

.auth-card .error-msg,
.auth-card .success-msg {
  display: none;
  margin-top: .75rem;
  padding: .55rem .7rem;
  font-size: .8rem;
  text-align: left;
  border: 1px solid transparent;
}

.auth-card .error-msg.show,
.auth-card .success-msg.show {
  display: block;
}

.auth-card .error-msg {
  color: #9d2c2c;
  background: #f8ecec;
  border-color: #e7c8c8;
}

.auth-card .success-msg {
  color: #245c38;
  background: #e7f3ec;
  border-color: #c5e0d0;
}

@media (max-width: 700px) {
  body.auth {
    align-items: flex-start;
    padding: 2.4rem 1.75rem 2rem;
    overflow-x: hidden;
  }

  .auth-wrap {
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
  }

  .auth-card {
    padding: 1.45rem 1.7rem 1.2rem;
  }
}

.wrap > .head .title,
.admin-bar h1 {
  font-family: var(--font-serif);
  font-weight: 500;
}

.section .btn {
  background: #c6a15b;
  color: #090b0e;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section .btn:hover {
  background: #e0c48a;
}

.user label {
  display: block;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6d675f;
  margin: .35rem 0 .28rem;
}

.user input {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid #e4ddd2;
  background: #fff;
  color: #161410;
  font: inherit;
}

.user button {
  border-radius: 0;
  background: #c6a15b;
  color: #090b0e;
  border: 1px solid #c6a15b;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .68rem;
  padding: .6rem .85rem;
  font-family: inherit;
}

.user button.danger {
  background: transparent;
  color: #9d2c2c;
  border: 1px solid #e7c8c8;
}
