*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #6d4cc2;
  --brand-dark: #523398;
  --wine: #6d4cc2;
  --wine-light: #7a1c3d;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --green: #5c8a5c;
  --red: #c0483f;
  --orange: #b8862e;
  --bg: #f5f4f8;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --cream: #20202b;
  --white: #fff;
  --gray: #a98e96;
  --line: #3a2430;
  --dark: #f1e6d8;
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.9), transparent 35%), var(--bg);
}
.auth-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 28px;
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}
.auth-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-logo { text-align: center; color: #fff; font-size: 34px; font-weight: 900; margin: 0 auto 8px; }
.app-mark{display:inline-block;position:relative;width:42px;height:42px;background:var(--brand);clip-path:polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%)}
.auth-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--gold-light); font-family: 'Fraunces', serif; }
.auth-sub { text-align: center; font-size: 12px; color: var(--gray); margin-bottom: 24px; letter-spacing: .5px; }

.auth-msg {
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.auth-msg.error { background: rgba(192, 72, 63, .15); border: 1px solid var(--red); color: #e8a49f; }
.auth-msg.ok { background: rgba(92, 138, 92, .15); border: 1px solid var(--green); color: #8fc98f; }
.auth-msg.warn { background: rgba(201, 162, 39, .12); border: 1px solid var(--gold); color: var(--gold-light); }

label { font-size: 12px; font-weight: 600; color: var(--gray); display: block; margin-bottom: 5px; letter-spacing: .4px; text-transform: uppercase; }

input, select {
  padding: 11px 12px;
  background: #150b12;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 100%;
  margin-bottom: 14px;
  color: var(--cream);
}
input:focus, select:focus { border-color: var(--gold); }

.btn-primary {
  background: var(--brand);
  color: #1a0e12;
  border: none;
  border-radius: 3px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  letter-spacing: .5px;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .5; cursor: default; }

.btn-ghost {
  background: none;
  border: none;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--gray); }
.auth-foot a { color: var(--gold-light); font-weight: 700; text-decoration: none; }

.hidden { display: none !important; }
