:root {
  --auth-bg-1: #f7f2e8;
  --auth-bg-2: #efe4d2;
  --auth-ink: #2b2723;
  --auth-muted: #8a7f6d;
  --auth-gold: #74642F;
  --auth-gold-2: #b08d4f;
  --auth-gold-3: #d8bd82;
  --auth-card: #fffdf8;
  --auth-border: #e8ddc9;
  --auth-aside-1: #241f14;
  --auth-aside-2: #3b3222;
  --auth-danger: #b2382c;
  --auth-success: #2f7d4f;
}

* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--auth-ink);
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(176, 141, 79, 0.20), transparent 55%),
    radial-gradient(900px 520px at 92% 92%, rgba(116, 100, 47, 0.16), transparent 55%),
    linear-gradient(160deg, var(--auth-bg-1), var(--auth-bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-container { width: 100%; max-width: 1000px; }

.auth-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(57, 44, 18, 0.45), 0 12px 30px -18px rgba(57, 44, 18, 0.35);
}

.auth-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--auth-gold-3), var(--auth-gold), var(--auth-gold-3), transparent);
  z-index: 2;
}

.auth-aside {
  position: relative;
  padding: 54px 46px;
  color: #f5efe3;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(216, 189, 130, 0.22), transparent 60%),
    linear-gradient(160deg, var(--auth-aside-1), var(--auth-aside-2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.auth-aside::after {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 34px;
  font-family: "Poppins", Georgia, sans-serif;
  font-size: 150px;
  line-height: 1;
  color: rgba(216, 189, 130, 0.14);
  pointer-events: none;
}

.auth-aside h2 {
  position: relative;
  font-family: "Poppins", Georgia, sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #fff;
}

.auth-aside p { position: relative; color: #ded3bd; line-height: 1.75; font-size: 15px; margin: 0; }
.auth-aside ul { position: relative; list-style: none; padding: 0; margin: 26px 0 0; }
.auth-aside li { position: relative; padding: 9px 0 9px 32px; color: #efe6d5; font-size: 14.5px; }

.auth-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-gold-3), var(--auth-gold));
}

.auth-aside li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 7px;
  height: 4px;
  border-left: 2px solid #241f14;
  border-bottom: 2px solid #241f14;
  transform: translateY(-72%) rotate(-45deg);
}

.auth-main {
  padding: 54px 48px;
  background: linear-gradient(180deg, #fffdf8, #fdf9f1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Poppins", Georgia, sans-serif;
  font-size: 22px;
  letter-spacing: .4px;
  color: var(--auth-gold);
  text-decoration: none;
  margin-bottom: 4px;
}

.auth-brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-gold-3), var(--auth-gold));
  box-shadow: 0 0 0 4px rgba(176, 141, 79, 0.18);
}

.auth-title {
  font-family: "Poppins", Georgia, sans-serif;
  font-weight: 400;
  font-size: 30px;
  margin: 10px 0 6px;
  color: var(--auth-ink);
}

.auth-subtitle { color: var(--auth-muted); margin: 0 0 26px; font-size: 14.5px; }

.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--auth-muted);
  margin-bottom: 7px;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: #fff;
  color: var(--auth-ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input:hover { border-color: #dccbaa; }

.auth-input:focus {
  border-color: var(--auth-gold);
  box-shadow: 0 0 0 4px rgba(176, 141, 79, 0.18);
  background: #fffefb;
}

.auth-input::placeholder { color: #b6ab97; }

.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-input { padding-right: 64px; }

.auth-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(116, 100, 47, 0.10);
  border: 0;
  color: var(--auth-gold);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: inherit;
}

.auth-toggle:hover { background: rgba(116, 100, 47, 0.18); }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 13.5px; }
.auth-check { display: flex; align-items: center; gap: 8px; color: var(--auth-muted); }
.auth-check input { accent-color: var(--auth-gold); width: 15px; height: 15px; }
.auth-link { color: var(--auth-gold); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.btn-auth {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, var(--auth-gold), var(--auth-gold-2));
  box-shadow: 0 14px 30px -12px rgba(116, 100, 47, 0.8);
  transition: transform .15s, box-shadow .15s;
}

.btn-auth::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left .5s;
}

.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(116, 100, 47, 0.9); }
.btn-auth:hover::after { left: 120%; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--auth-muted);
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-border); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: #fff;
  color: var(--auth-ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(57, 44, 18, 0.05);
  transition: border-color .2s, box-shadow .2s, transform .15s, background .2s;
}

.btn-google:hover {
  border-color: #dccbaa;
  background: #fffdf8;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(57, 44, 18, 0.4);
}

.auth-google-icon { width: 18px; height: 18px; flex: 0 0 18px; }

.auth-footer { margin-top: 22px; text-align: center; font-size: 14px; color: var(--auth-muted); }
.auth-footer .auth-link { font-weight: 700; }
.auth-links-row { display: flex; gap: 16px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.auth-links-row .auth-link { font-weight: 600; font-size: 13px; }

.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 12.5px;
  letter-spacing: .3px;
  color: var(--auth-muted);
}

.auth-secure::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-gold-3), var(--auth-gold));
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.auth-alert.error { background: #fbecea; border-color: #f0c4bd; color: var(--auth-danger); }
.auth-alert.success { background: #eaf6ee; border-color: #bfe3cd; color: var(--auth-success); }
.auth-alert.info { background: #eef3fb; border-color: #cddff5; color: #2b5b9a; }

@media (max-width: 860px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 40px 26px; }
  .auth-title { font-size: 26px; }
  body.auth-body { padding: 22px 14px; }
}
