:root {
  --page-bg: #f7f1f6;
  --card-bg: #fcfbfd;
  --left-main: #6a3595;
  --left-deep: #5d2d87;
  --text: #26262d;
  --muted: #585c67;
  --line: #e7dff0;
  --input-bg: #ffffff;
  --accent: #6f3d97;
  --accent-hover: #5f2f87;
  --danger-bg: #fff1f3;
  --danger-text: #b42345;
  --success-bg: #eefbf1;
  --success-text: #18794e;
  --shadow: 0 28px 64px rgba(96, 54, 128, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(132, 94, 194, 0.08), transparent 34%),
    linear-gradient(180deg, #fbf8fb 0%, var(--page-bg) 100%);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
}

.login-card {
  width: min(1080px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 34px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.login-left {
  background: linear-gradient(180deg, var(--left-deep) 0%, var(--left-main) 100%);
  color: #fff;
  padding: 54px 46px 38px;
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.login-left h1 {
  max-width: 380px;
  margin: 18px 0 18px;
  font-size: clamp(2.2rem, 3.7vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.login-left h1 span {
  font-size: 0.86em;
}

.left-copy {
  margin: 0 0 30px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.94);
}

.feature-list li::before {
  content: "☑";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 1.1rem;
  color: #8ef0b5;
}

.copyright {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.92rem;
}

.login-right {
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 42px 46px;
}

.form-shell {
  width: min(470px, 100%);
  margin: 0 auto;
}

.form-shell h2 {
  margin: 0;
  font-size: clamp(2.5rem, 3.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.form-subtitle {
  margin: 12px 0 34px;
  color: #4c5870;
  font-size: 0.96rem;
}

.login-form {
  display: grid;
  gap: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.field-row label {
  font-size: 0.96rem;
  font-weight: 500;
  color: #1f2430;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  border: 1px solid #d8d6df;
  border-radius: 14px;
  padding: 0 16px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.input-wrap input::placeholder {
  color: #8b8795;
}

.input-wrap input:focus {
  outline: none;
  border-color: rgba(111, 61, 151, 0.52);
  box-shadow: 0 0 0 4px rgba(111, 61, 151, 0.1);
  transform: translateY(-1px);
}

.input-wrap input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.form-message {
  margin: -6px 0 2px 112px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--danger-bg);
  color: var(--danger-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-message.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.login-button {
  margin-top: 4px;
  margin-left: 0;
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #7642a2 0%, var(--accent) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(111, 61, 151, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #6a3895 0%, var(--accent-hover) 100%);
  box-shadow: 0 22px 38px rgba(111, 61, 151, 0.24);
}

.login-button:disabled {
  cursor: not-allowed;
  opacity: 0.84;
  transform: none;
  box-shadow: 0 14px 24px rgba(111, 61, 151, 0.18);
}

@media (max-width: 1100px) {
  .login-card {
    width: min(920px, 100%);
  }

  .login-left,
  .login-right {
    padding: 38px 34px;
  }
}

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

  .login-left {
    padding-bottom: 34px;
  }

  .copyright {
    margin-top: 34px;
  }
}

@media (max-width: 640px) {
  .login-page {
    padding: 16px;
  }

  .login-card {
    border-radius: 28px;
  }

  .login-left,
  .login-right {
    padding: 28px 22px;
  }

  .brand-name {
    font-size: 2.5rem;
  }

  .login-left h1 {
    font-size: 2.5rem;
  }

  .form-shell h2 {
    font-size: 2.7rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-message {
    margin-left: 0;
  }
}