@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  --color-primary: #0f766e;
  --color-primary-hover: #0b5e57;
  --color-accent: #f59e0b;
  --color-bg: #eff6f8;
  --color-bg-deep: #dbe9ee;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #d8e2e8;
  --color-error: #dc2626;
  --color-success: #059669;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.14);
}

body.login-split-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 8% 12%, rgba(15, 118, 110, 0.18) 0, transparent 36%),
    radial-gradient(circle at 86% 88%, rgba(245, 158, 11, 0.16) 0, transparent 40%),
    linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  font-family: 'Nunito Sans', 'Segoe UI', Tahoma, sans-serif;
  color: var(--color-text);
}

.login-split-page {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.login-split-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1080px;
  min-height: 620px;
  background: var(--color-surface);
  border-radius: 26px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: panel-enter 0.55s ease;
}

.login-split-left {
  flex: 1;
  background: linear-gradient(165deg, #0f766e 0%, #155e75 56%, #1d4f68 100%);
  color: #ffffff;
  padding: 56px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-split-left::after,
.login-split-left::before {
  content: '';
  position: absolute;
  border-radius: 999px;
  z-index: 0;
}

.login-split-left::after {
  right: -70px;
  top: -30px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.12);
}

.login-split-left::before {
  left: -110px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.08);
}

.left-banner-content,
.left-banner-footer {
  position: relative;
  z-index: 1;
}

.left-banner-content {
  max-width: 360px;
}

.brand-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.brand-title {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
}

.brand-desc {
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 360px;
}

.brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brand-features li {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.94rem;
  font-weight: 600;
  opacity: 0.96;
}

.brand-features li i {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
}

.left-banner-footer {
  font-size: 0.84rem;
  opacity: 0.82;
  line-height: 1.5;
}

.login-split-right {
  flex: 1;
  max-width: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background:
    linear-gradient(130deg, rgba(15, 118, 110, 0.03), transparent 35%),
    linear-gradient(0deg, #ffffff, #ffffff);
}

.form-wrapper {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e4edf2;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 30px 26px 24px;
}

.form-wrapper h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.form-subtitle {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  margin: 0 0 24px;
  line-height: 1.55;
}

.form-message {
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  line-height: 1.45;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-info {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #c7dcff;
}

.form-message.is-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group.has-error .input-container {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.input-container input {
  width: 100%;
  border: 0;
  padding: 13px 14px;
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  background: transparent;
}

.input-container input::placeholder {
  color: #94a3b8;
}

.toggle-password {
  background: none;
  border: none;
  padding: 0 14px;
  color: #94a3b8;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: var(--color-text-muted);
}

.form-help {
  color: var(--color-error);
  font-size: 0.79rem;
  margin-top: 4px;
  min-height: 0;
}

.form-group.has-error .form-help {
  min-height: 14px;
}

.form-options {
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  color: var(--color-text-muted);
  user-select: none;
  font-size: 0.88rem;
  line-height: 1.35;
}

.custom-checkbox input {
  display: none;
}

.login-checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  margin-right: 10px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-checkbox:hover .login-checkmark {
  border-color: var(--color-primary);
}

.custom-checkbox input:checked + .login-checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-checkbox input:checked + .login-checkmark::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.btn-submit {
  margin-top: 2px;
  width: 100%;
  border: 0;
  padding: 13px 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-submit:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
}

.btn-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-note {
  margin: 10px 2px 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 992px) {
  .login-split-container {
    flex-direction: column;
    min-height: 0;
    max-width: 680px;
  }

  .login-split-left {
    padding: 40px 28px 30px;
  }

  .brand-desc {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .login-split-right {
    max-width: 100%;
    padding: 28px 22px 34px;
  }

  .form-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  body.login-split-body {
    padding: 12px;
  }

  .login-split-container {
    border-radius: 18px;
  }

  .login-split-left {
    padding: 28px 18px 22px;
  }

  .brand-kicker {
    margin-bottom: 14px;
    font-size: 0.72rem;
  }

  .brand-img {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
  }

  .brand-title {
    font-size: 1.58rem;
  }

  .login-split-right {
    padding: 16px;
  }

  .form-wrapper {
    padding: 22px 16px 18px;
    border-radius: 14px;
  }

  .form-wrapper h2 {
    font-size: 1.45rem;
  }
}
