:root {
  --bg: #120f0e;
  --panel: #1a1513;
  --line: #2f2724;
  --field: #1e1a18;
  --fieldline: #3a322e;
  --text: #f5efe9;
  --muted: #b8aea6;
  --accent: #d92d3f;
  --link: #ff6470;
  --err: #ff8a93;
}

body.auth {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.auth * {
  box-sizing: border-box;
}

.auth a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
.auth a:hover {
  text-decoration: underline;
}

.auth .split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth .brand {
  position: relative;
  overflow: hidden;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(rgba(18, 15, 14, 0.72), rgba(18, 15, 14, 0.85)), url('../image/BG_LandingPage.jpg') center/cover no-repeat;
  border-right: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px);
}

.auth .ring {
  position: absolute;
  right: -180px;
  top: 50%;
  width: 560px;
  height: 560px;
  margin-top: -280px;
  border-radius: 50%;
  border: 1px solid #3a2a27;
  pointer-events: none;
}
.auth .ring.b {
  right: -90px;
  width: 380px;
  height: 380px;
  margin-top: -190px;
  border-color: #5a2a2f;
}
.auth .ring.c {
  right: 0;
  width: 200px;
  height: 200px;
  margin-top: -100px;
  background: var(--accent);
  border: 0;
  opacity: 0.9;
}

.auth .logo {
  position: relative;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.auth .logo span {
  color: var(--link);
}
.auth .mlogo {
  display: none;
}

.auth .pitch {
  position: relative;
  max-width: 440px;
}
.auth .pitch h1 {
  margin: 0 0 16px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.auth .pitch p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.auth .formside {
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px);
}

.auth .card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth .card-wide {
  max-width: 440px;
}

.auth .card h2 {
  margin: 0 0 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.auth .card p.sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.auth .auth-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin: 0;
}

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

.auth .fields-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.auth .fields-row .field {
  flex: 1 1 50%;
  min-width: 0;
}

.auth .field-feedback {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
  min-height: 18px;
  display: none;
  align-items: center;
  gap: 6px;
}

.auth .field-feedback.error {
  display: flex;
  color: var(--err);
}

.auth .field-feedback.success {
  display: flex;
  color: #5cdbb5;
}

.auth input.valid {
  border-color: #5cdbb5;
}

.auth .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.auth label {
  font-size: 14px;
  font-weight: 600;
  color: #d9d0c8;
}

.auth input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--fieldline);
  background: var(--field);
  color: var(--text);
  font: 500 16px 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth input::placeholder {
  color: #7d746d;
}
.auth input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(255, 100, 112, 0.25);
}
.auth input[aria-invalid="true"] {
  border-color: var(--err);
}

.auth .pw {
  position: relative;
}
.auth .pw input {
  padding-right: 52px;
}

.auth .eye {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s;
}
.auth .eye:hover {
  color: var(--text);
}

.auth button {
  font-family: inherit;
}
.auth button:focus-visible,
.auth a:focus-visible {
  outline: 3px solid var(--err);
  outline-offset: 2px;
}

.auth .btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(217, 45, 63, 0.28);
  transition: transform 0.12s, filter 0.12s;
  text-decoration: none;
}
.auth .btn:hover {
  filter: brightness(1.1);
  text-decoration: none;
}
.auth .btn:active {
  transform: translateY(1px);
}
.auth .btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.auth .g {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #2b2522;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.auth .g:hover {
  background: #f1ece7;
  text-decoration: none;
}

.auth .or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #a8a09a;
  font-size: 13px;
}
.auth .or i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth .foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.auth .err {
  min-height: 18px;
  font-size: 13px;
  color: var(--err);
  margin: -14px 0 -8px;
}

.auth .msg {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  background: #24201d;
  border: 1px solid var(--fieldline);
  color: var(--text);
  display: none;
}
.auth .msg.show {
  display: block;
}

@media (max-width: 1100px) {
  .auth .split {
    grid-template-columns: 0.9fr 1fr;
  }
  .auth .ring {
    right: -240px;
  }
  .auth .ring.b {
    right: -150px;
  }
  .auth .ring.c {
    right: -60px;
  }
}

@media (max-width: 860px) {
  .auth .split {
    grid-template-columns: 1fr;
  }
  .auth .brand {
    display: none;
  }
  .auth .formside {
    align-items: flex-start;
    padding: 32px 20px 48px;
    background: linear-gradient(rgba(18, 15, 14, 0.88), rgba(18, 15, 14, 0.94)), url('../image/BG_LandingPage.jpg') center/cover no-repeat;
  }
  .auth .card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 28px;
    gap: 20px;
  }
  .auth .mlogo {
    display: block;
    text-align: center;
    font-size: 30px;
    margin-bottom: -4px;
  }
  .auth .card .head {
    text-align: center;
  }
  .auth .card h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .auth .formside {
    padding: 16px 12px 32px;
  }
  .auth .card {
    padding: 26px 18px;
    border-radius: 16px;
    gap: 18px;
  }
  .auth .fields-row {
    flex-direction: column;
    gap: 18px;
  }
  .auth .mlogo {
    font-size: 26px;
  }
  .auth .card h2 {
    font-size: 24px;
  }
  .auth .foot {
    font-size: 13.5px;
  }
}

@media (max-width: 480px) and (min-width: 0) {
  .auth .formside {
    padding-top: 20px;
  }
}

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