:root {
  --ym-teal: #0f766e;
  --ym-teal-dark: #0b5c56;
  --ym-teal-deep: #043d3a;
  --ym-gold: #c9a227;
  --ym-mint: #ecfdf7;
  --ym-text: #14302e;
  --ym-muted: #5b716e;
  --ym-border: #d7ece6;
  --ym-shadow: 0 24px 60px rgba(4, 61, 58, 0.18);
}

* {
  box-sizing: border-box;
}

body.ym-auth-body {
  margin: 0;
  min-height: 100vh;
  color: var(--ym-text);
  background: #f4fbf8;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

.ym-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.ym-login-panel {
  position: relative;
  overflow: hidden;
  color: #f4fffb;
  padding: 2.4rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 162, 39, 0.24), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(45, 212, 191, 0.22), transparent 26%),
    linear-gradient(145deg, #043532 0%, #0f766e 58%, #115e59 100%);
}

.ym-login-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.16);
  filter: blur(8px);
  pointer-events: none;
}

.ym-login-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
  width: fit-content;
  color: #fff;
  text-decoration: none;
}

.ym-login-logo:hover {
  color: #fff;
}

.ym-login-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #14b8a6, #0f766e 58%, #c9a227);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.ym-login-word {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ym-login-word span {
  color: #f6de8a;
}

.ym-login-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
}

.ym-login-panel h1 {
  position: relative;
  z-index: 1;
  max-width: 16ch;
  margin-bottom: 1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ym-login-lead {
  position: relative;
  z-index: 1;
  max-width: 38ch;
  margin-bottom: 1.8rem;
  color: rgba(244, 255, 251, 0.82);
  font-size: 1.02rem;
}

.ym-login-points {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.ym-login-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #e8fff8;
  font-weight: 600;
}

.ym-login-points i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #f6de8a;
}

.ym-login-form-wrap {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    #f4fbf8;
}

.ym-login-card {
  width: min(100%, 420px);
  padding: 2rem 1.85rem 1.6rem;
  border: 1px solid var(--ym-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ym-shadow);
}

.ym-login-card h2 {
  margin: 0 0 0.3rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.ym-login-sub {
  margin-bottom: 1.25rem;
  color: var(--ym-muted);
}

.ym-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--ym-mint);
}

.ym-login-tab {
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.7rem;
  background: transparent;
  color: var(--ym-teal-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.ym-login-tab.is-active {
  background: #fff;
  color: var(--ym-teal-deep);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
}

.ym-login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
}

.ym-field {
  margin-bottom: 1rem;
}

.ym-field .form-label {
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--ym-text);
}

.ym-input {
  position: relative;
}

.ym-input i:first-child {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ym-teal);
}

.ym-input input {
  width: 100%;
  height: 48px;
  padding: 0 2.6rem 0 2.5rem;
  border: 1px solid var(--ym-border);
  border-radius: 14px;
  background: #fff;
  color: var(--ym-text);
  outline: none;
}

.ym-input input:focus {
  border-color: var(--ym-teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.ym-eye {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ym-muted);
}

.ym-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 1.15rem;
  font-size: 0.88rem;
}

.ym-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ym-text);
  font-weight: 600;
}

.ym-login-hint {
  color: var(--ym-muted);
}

.ym-login-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.28);
}

.ym-login-submit:hover {
  background: linear-gradient(135deg, #0f766e, #0b5c56);
  color: #fff;
}

.ym-login-footer {
  margin: 1.2rem 0 0;
  text-align: center;
  color: var(--ym-muted);
  font-size: 0.92rem;
}

.ym-login-footer a {
  color: var(--ym-teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.ym-login-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .ym-login {
    grid-template-columns: 1fr;
  }

  .ym-login-panel {
    min-height: auto;
    padding: 1.6rem 1.4rem 1.8rem;
  }

  .ym-login-panel h1,
  .ym-login-lead,
  .ym-login-points {
    display: none;
  }

  .ym-login-logo {
    margin-bottom: 0;
  }

  .ym-login-kicker {
    display: none;
  }

  .ym-login-card {
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(4, 61, 58, 0.1);
  }
}
