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

:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe2ea;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.auth-page,
.register-page {
  min-height: calc(100vh - 72px);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(79, 70, 229, 0.08), transparent 28%);
}

.auth-shell {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}

.register-shell {
  width: 100%;
  max-width: 840px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.auth-showcase {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  border-radius: var(--radius-xl);
  padding: 38px;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
}

.auth-showcase-top h2 {
  font-size: 42px;
  line-height: 1.08;
  margin: 16px 0 14px;
  font-weight: 800;
}

.auth-showcase-top p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e0ecff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-showcase .auth-chip {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.auth-points {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.auth-point-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.auth-point-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.auth-point-text span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
  font-size: 14px;
}

.auth-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.auth-mini-stat {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
}

.auth-mini-stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.auth-mini-stat span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.auth-panel,
.register-panel {
  width: 100%;
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.auth-top h1 {
  margin-top: 14px;
  font-size: 38px;
  line-height: 1.08;
  color: var(--text);
  font-weight: 800;
}

.auth-top p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.auth-field {
  min-width: 0;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font);
}

.auth-field textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: #94a3b8;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.field-note {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.remember-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.remember-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.auth-main-btn,
.auth-google-btn {
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: var(--font);
}

.auth-main-btn {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.auth-main-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.auth-google-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: #111827;
}

.auth-google-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.auth-bottom-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.auth-bottom-text a {
  color: var(--primary);
  font-weight: 800;
}

.form-message {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.form-message.show {
  display: block;
}

.form-message.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-message.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-utility-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.auth-utility-link:hover {
  text-decoration: underline;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: #e5e7eb;
  transform: translateY(-50%);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: #ffffff;
  color: #94a3b8;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.auth-page .auth-panel,
.register-page .register-panel {
  align-self: center;
}

.login-page .auth-shell {
  max-width: 1180px;
}

.register-page .register-shell {
  max-width: 840px;
}

.register-page .register-panel {
  max-width: 100%;
}

.register-page .auth-form {
  gap: 16px;
}

.register-page .auth-top h1 {
  font-size: 36px;
}

.register-page .auth-top p {
  max-width: 620px;
}

body.dark .auth-panel,
body.dark .register-panel {
  background: #111827;
  border-color: #1f2937;
}

body.dark .auth-top h1,
body.dark .auth-field label {
  color: #f8fafc;
}

body.dark .auth-top p,
body.dark .field-note,
body.dark .remember-line,
body.dark .auth-bottom-text {
  color: #cbd5e1;
}

body.dark .auth-field input,
body.dark .auth-field select,
body.dark .auth-field textarea,
body.dark .auth-google-btn,
body.dark .auth-divider span {
  background: #0f172a;
  border-color: #334155;
  color: #ffffff;
}

body.dark .auth-field input::placeholder,
body.dark .auth-field textarea::placeholder {
  color: #94a3b8;
}

body.dark .auth-google-btn:hover {
  border-color: #60a5fa;
  color: #93c5fd;
}

body.dark .form-message.error {
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  border-color: rgba(252, 165, 165, 0.25);
}

body.dark .form-message.success {
  background: rgba(6, 78, 59, 0.25);
  color: #a7f3d0;
  border-color: rgba(110, 231, 183, 0.25);
}

body.dark .auth-divider::before {
  background: #334155;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: auto;
  }

  .register-shell {
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  .auth-page,
  .register-page {
    padding: 14px 10px 20px;
    align-items: flex-start;
  }

  .auth-shell,
  .register-shell {
    width: 100%;
    max-width: 100%;
    gap: 0;
  }

  .auth-showcase {
    display: none !important;
  }

  .auth-panel,
  .register-panel {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    padding: 18px 14px;
    box-shadow: var(--shadow-md);
  }

  .auth-top {
    text-align: left;
  }

  .auth-top h1 {
    font-size: 28px;
    margin-top: 10px;
  }

  .register-page .auth-top h1 {
    font-size: 28px;
  }

  .auth-top p,
  .register-page .auth-top p {
    font-size: 14px;
    line-height: 1.6;
  }

  .auth-form {
    margin-top: 18px;
    gap: 14px;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .auth-field label {
    font-size: 13px;
    margin-bottom: 7px;
  }

  .auth-field input,
  .auth-field select,
  .auth-field textarea {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
  }

  .auth-field textarea {
    padding: 12px 14px;
  }

  .auth-main-btn,
  .auth-google-btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 14px;
  }

  .remember-line {
    align-items: flex-start;
    font-size: 13px;
  }

  .auth-bottom-text {
    font-size: 13px;
    text-align: center;
  }

  .auth-utility-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .auth-page,
  .register-page {
    padding: 10px 8px 18px;
  }

  .auth-panel,
  .register-panel {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .auth-top h1,
  .register-page .auth-top h1 {
    font-size: 24px;
  }

  .auth-top p,
  .register-page .auth-top p {
    font-size: 13px;
  }

  .auth-form {
    gap: 12px;
  }

  .auth-field input,
  .auth-field select,
  .auth-field textarea,
  .auth-main-btn,
  .auth-google-btn {
    font-size: 13px;
  }
}
body.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(79, 70, 229, 0.08), transparent 28%);
}

.login-page .auth-page {
  min-height: 100vh;
  width: 100%;
  padding: 20px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page .auth-shell {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}

.login-page .auth-panel {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.login-page .auth-showcase {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  border-radius: 30px;
  padding: 38px;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
}

.login-page .auth-top h1 {
  margin-top: 14px;
  font-size: 38px;
  line-height: 1.08;
  color: #0f172a;
  font-weight: 800;
}

.login-page .auth-top p {
  margin-top: 10px;
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}

.login-page .auth-form {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.login-page .auth-field {
  min-width: 0;
}

.login-page .auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.login-page .auth-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  padding: 0 16px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  outline: none;
}

.login-page .auth-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.login-page .auth-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-page .remember-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.login-page .remember-line input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.login-page .auth-utility-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.login-page .auth-main-btn,
.login-page .auth-google-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.login-page .auth-main-btn {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.login-page .auth-google-btn {
  border: 1px solid #dbe2ea;
  background: #ffffff;
  color: #111827;
}

.login-page .auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0;
}

.login-page .auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: #e5e7eb;
  transform: translateY(-50%);
}

.login-page .auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: #ffffff;
  color: #94a3b8;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.login-page .auth-bottom-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.login-page .auth-bottom-text a {
  color: #2563eb;
  font-weight: 800;
}

.login-page .form-message {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.login-page .form-message.show {
  display: block;
}

.login-page .form-message.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.login-page .form-message.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.login-page .auth-showcase-top h2 {
  font-size: 42px;
  line-height: 1.08;
  margin: 16px 0 14px;
  font-weight: 800;
}

.login-page .auth-showcase-top p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}

.login-page .auth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e0ecff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.login-page .auth-showcase .auth-chip {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.login-page .auth-points {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-page .auth-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.login-page .auth-point-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.login-page .auth-point-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.login-page .auth-point-text span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
  font-size: 14px;
}

.login-page .auth-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.login-page .auth-mini-stat {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
}

.login-page .auth-mini-stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.login-page .auth-mini-stat span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 980px) {
  .login-page .auth-shell {
    grid-template-columns: 1fr;
  }

  .login-page .auth-showcase {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .login-page .auth-page {
    padding: 14px 10px 20px;
    align-items: flex-start;
  }

  .login-page .auth-shell {
    width: 100%;
    max-width: 100%;
    gap: 0;
  }

  .login-page .auth-showcase {
    display: none !important;
  }

  .login-page .auth-panel {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    padding: 18px 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

  .login-page .auth-top h1 {
    font-size: 28px;
    margin-top: 10px;
  }

  .login-page .auth-top p {
    font-size: 14px;
    line-height: 1.6;
  }

  .login-page .auth-form {
    margin-top: 18px;
    gap: 14px;
  }

  .login-page .auth-field label {
    font-size: 13px;
    margin-bottom: 7px;
  }

  .login-page .auth-field input {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
  }

  .login-page .auth-main-btn,
  .login-page .auth-google-btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 14px;
  }

  .login-page .remember-line {
    align-items: flex-start;
    font-size: 13px;
  }

  .login-page .auth-bottom-text {
    font-size: 13px;
    text-align: center;
  }

  .login-page .auth-utility-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .login-page .auth-page {
    padding: 10px 8px 18px;
  }

  .login-page .auth-panel {
    padding: 16px 12px;
    border-radius: 18px;
  }

  .login-page .auth-top h1 {
    font-size: 24px;
  }

  .login-page .auth-top p {
    font-size: 13px;
  }

  .login-page .auth-form {
    gap: 12px;
  }

  .login-page .auth-field input,
  .login-page .auth-main-btn,
  .login-page .auth-google-btn {
    font-size: 13px;
  }
}