/* Artemis Dijital — shell styles: header, home page and the auth pages. */

:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --border: #e4e7ec;
  --border-strong: #d3d8e0;
  --text: #16191f;
  --muted: #667085;
  --accent: #2f5fe0;
  --accent-hover: #2549b8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #12805c;
  --success-soft: #e6f6ef;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: var(--accent);
}

/* --------------------------------- header ---------------------------------- */

.bar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.bar__brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.bar__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #2f5fe0, #6d3fe0);
  border-radius: 9px;
}

.bar__right {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* --------------------------------- buttons --------------------------------- */

.button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 120ms ease;
}

.button--primary {
  color: #fff;
  background: var(--accent);
}

.button--primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.button--ghost {
  color: var(--muted);
  background: transparent;
}

.button--ghost:hover:not(:disabled) {
  color: var(--text);
  background: rgb(16 24 40 / 6%);
}

.button--block {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ------------------------------ account / signin ---------------------------- */

.account {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account__name {
  max-width: 220px;
  overflow: hidden;
  font-size: 13.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signin {
  position: relative;
}

.signin__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 900;
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgb(16 24 40 / 16%);
  animation: signin-in 120ms ease;
}

@keyframes signin-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.signin__title {
  font-size: 15px;
  font-weight: 620;
}

.signin__sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.signin__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.signin__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 550;
}

.signin__error,
.form__error {
  padding: 9px 11px;
  font-size: 13px;
  color: #7a2018;
  background: var(--danger-soft);
  border: 1px solid #f3c7c2;
  border-radius: 8px;
}

.signin__links {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 16px;
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.signin__links a {
  font-weight: 550;
  text-decoration: none;
}

.signin__links a:hover {
  text-decoration: underline;
}

/* --------------------------------- inputs ---------------------------------- */

input {
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(47 95 224 / 22%);
}

/* ------------------------------- home page --------------------------------- */

main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 960px;
  padding: 64px 24px 80px;
  margin: 0 auto;
}

.home h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 680;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 52ch;
  margin: 12px 0 40px;
  font-size: 17px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 6%);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgb(16 24 40 / 10%);
  transform: translateY(-2px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 21px;
  color: #fff;
  border-radius: 12px;
}

.card__name {
  font-size: 17px;
  font-weight: 620;
}

.card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.card__go {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--accent);
}

.note {
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ------------------------------- auth pages -------------------------------- */

.auth {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 20px;
}

.auth__card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(16 24 40 / 8%);
}

.auth__card h1 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.auth__sub {
  margin: 6px 0 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 13px;
  font-weight: 550;
}

.field__hint {
  font-size: 12.5px;
  color: var(--muted);
}

.form__success {
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #bfe5d5;
  border-radius: 8px;
}

.auth__foot {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 18px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.auth__foot a {
  font-weight: 550;
  text-decoration: none;
}

footer {
  padding: 22px 24px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
