/* e-Meeting login – split-screen layout */

.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--emt-font, 'Noto Sans Thai', 'Inter', sans-serif);
  background: #fff;
  color: var(--emt-text, #1A2540);
}

.login-split {
  display: flex;
  min-height: 100vh;
}

/* ── Left brand panel ───────────────────────── */
.login-brand {
  flex: 0 0 44%;
  max-width: 520px;
  background-color: #1a6fa8;
  background-image: linear-gradient(
    155deg,
    rgba(26, 111, 168, 0.55) 0%,
    rgba(20, 90, 145, 0.62) 45%,
    rgba(15, 75, 125, 0.68) 100%
  ),
  url('../images/login-meeting-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 32px 40px 28px;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

.login-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.login-brand-logo {
  display: flex;
  align-items: center;
}

.login-brand-img {
  height: 54px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.login-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-brand-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.login-brand-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.login-brand-name .accent {
  color: var(--coral, #F05A35);
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.login-back:hover {
  color: #fff;
}

.login-back svg {
  width: 16px;
  height: 16px;
}

.login-brand-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0 24px;
  position: relative;
  z-index: 1;
}

.login-hero-kicker {
  color: #fff;
  font-size: clamp(29px, 3.3vw, 37px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
  font-family: var(--emt-font, 'Noto Sans Thai', 'Inter', sans-serif);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.login-hero-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.2px;
  max-width: 100%;
}

.login-hero-title .line-white {
  color: #fff;
  display: block;
}

.login-hero-title .line-accent {
  color: #f5a623;
  display: block;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.login-hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 340px;
  margin: 0 0 36px;
}

.login-hero-icons {
  display: flex;
  gap: 14px;
}

.login-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
}

.login-hero-icon svg {
  width: 20px;
  height: 20px;
}

.login-brand-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

/* ── Right form panel ───────────────────────── */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #fff;
}

.login-form-inner {
  width: 100%;
  max-width: 400px;
}

.login-welcome {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.login-welcome-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 32px;
  line-height: 1.6;
}

.login-sso-btn,
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3eb0e0 0%, #1a6fa8 55%, #155f94 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 14px rgba(21, 95, 148, 0.32);
  -webkit-appearance: none;
  appearance: none;
}

.login-sso-btn {
  text-decoration: none;
}

.login-sso-btn:hover,
.login-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #4dbde8 0%, #1e7eb8 55%, #186a9e 100%);
  box-shadow: 0 6px 20px rgba(21, 95, 148, 0.38);
  color: #fff;
}

.login-sso-btn svg,
.login-submit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.login-sso-hint {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin: 10px 0 28px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: #9ca3af;
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-field {
  position: relative;
  margin-bottom: 14px;
}

.login-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  display: flex;
}

.login-field-icon svg {
  width: 18px;
  height: 18px;
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px 14px 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f3f4f6;
  font-family: inherit;
  font-size: 14px;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.login-field input::placeholder {
  color: #9ca3af;
}

.login-field input:focus {
  outline: none;
  background: #fff;
  border-color: #1a6fa8;
  box-shadow: 0 0 0 3px rgba(26, 111, 168, 0.14);
}

.login-forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #6b7280;
  margin: -4px 0 20px;
}

.login-form-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.login-form-footer a {
  color: #1a6fa8;
  font-weight: 500;
  text-decoration: none;
}

.login-form-footer a:hover {
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .login-split {
    flex-direction: column;
  }

  .login-brand {
    flex: none;
    max-width: none;
    min-height: auto;
    padding: 24px 24px 32px;
  }

  .login-brand-hero {
    padding: 28px 0 20px;
  }

  .login-hero-kicker {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .login-hero-title {
    font-size: 20px;
    line-height: 1.45;
  }

  .login-hero-desc {
    margin-bottom: 24px;
  }

  .login-form-panel {
    padding: 32px 24px 48px;
  }
}

@media (max-width: 480px) {
  .login-brand-top {
    flex-wrap: wrap;
  }

  .login-welcome {
    font-size: 26px;
  }
}
