:root {
  --teal: #12a182;
  --teal-dark: #0e8568;
  --teal-light: #e6f7f2;
  --petrol: #1a3d47;
  --petrol-soft: #2d5a66;
  --bg: #fdfbf7;
  --text: #1e3238;
  --text-muted: #5a7279;
  --border: rgba(26, 61, 71, 0.14);
  --error: #d93025;
  --panel-gray: #eef1f3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual-panel { display: none; }
}

.login-form-panel {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.brand-row {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-evan { color: var(--petrol); }
.brand-ia { color: var(--teal); }
.brand-product {
  margin-left: 0.65rem;
  padding-left: 0.65rem;
  border-left: 2px solid var(--border);
  color: var(--petrol-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  color: var(--teal-dark);
  font-weight: 700;
}

.intro {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

label {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--petrol);
}

input, select, button {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
}

input.invalid, select.invalid {
  border-color: var(--error);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--error);
}

.hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.field-error.hidden, .form-error.hidden { display: none; }

.password-wrap {
  position: relative;
  margin-top: 0.4rem;
}

.password-wrap input {
  width: 100%;
  margin-top: 0;
  padding-right: 2.75rem;
}

button.toggle-pw {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0 8px 8px 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text-muted);
}

button.toggle-pw:hover {
  color: var(--teal);
}

.toggle-pw-icon {
  display: block;
  flex-shrink: 0;
}

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.forgot {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--teal-dark);
  font-size: 0.88rem;
  text-decoration: none;
}

.forgot:hover { color: var(--teal); }

button[type="submit"] {
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem;
}

button[type="submit"]:not(:disabled):hover {
  box-shadow: 0 8px 24px rgba(18, 161, 130, 0.35);
}

button[type="submit"]:disabled {
  background: #c5cdd0;
  cursor: not-allowed;
  box-shadow: none;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-note a { color: var(--teal-dark); }

.login-visual-panel {
  background: var(--panel-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.carousel {
  position: relative;
  width: min(420px, 90%);
  text-align: center;
}

.carousel-stage {
  position: relative;
  width: 100%;
  min-height: 320px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.carousel-stage.fade-out {
  opacity: 0;
}

.carousel-media.hidden {
  display: none;
}

.carousel-image {
  display: block;
  width: 100%;
  max-height: min(72vh, 520px);
  object-fit: contain;
  background: #fff;
}

.login-video-wrap {
  position: relative;
  width: 100%;
  background: #fff;
}

.login-video {
  display: block;
  width: 100%;
  max-height: min(72vh, 520px);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  vertical-align: middle;
}

.login-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.login-video-play:hover {
  background: rgba(255, 255, 255, 0.35);
}

.login-video-play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 32px rgba(18, 161, 130, 0.45);
  color: #fff;
  transition: transform 0.2s ease;
}

.login-video-play:hover span {
  transform: scale(1.06);
}

.login-video-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.login-video-wrap.is-playing .login-video-play {
  display: none;
}

.carousel-caption {
  margin-top: 1.25rem;
}

.carousel-caption h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--petrol);
}

.carousel-caption p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(26, 61, 71, 0.25);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--teal);
  transform: scale(1.15);
}

.captcha-block {
  margin: 0.5rem 0 1rem;
  min-height: 65px;
}

.captcha-block.hidden { display: none; }
