*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-orange: #f2590d;
  --brand-orange-hover: #d94e0b;
  --text-primary: #000;
  --text-secondary: #7e7572;
  --text-muted: #999;
  --border-color: #e0e0e0;
  --bg-white: #fff;
  --bg-cream: #f9f7f6;
  --promo-green: #0a2e1a;
  --promo-green-light: #1a5c32;
  --radius: 8px;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  min-height: 100vh;
}

/* ── Left Login Panel ── */
.login-panel {
  width: 100%;
  max-width: 380px;
  min-height: 100vh;
  background: var(--bg-white);
  padding: 20px;
  overflow-y: auto;
  flex-shrink: 0;
}

.login-content {
  display: grid;
  gap: 16px;
  max-width: 340px;
}

.logo {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
}

.login-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Social buttons */
.social-buttons {
  display: flex;
  gap: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  height: 40px;
  padding: 0 12px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.social-btn:hover {
  background: #d5d5d5;
  border-color: #d5d5d5;
}

.social-btn-more {
  flex: 0 0 40px;
  padding: 0;
  background: var(--bg-cream);
}

.social-btn-more svg {
  color: var(--text-primary);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Form */
.login-form {
  display: grid;
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 4px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(242, 89, 13, 0.15);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  padding: 0;
}

.toggle-password:hover {
  color: var(--text-primary);
}

.hidden {
  display: none;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-orange);
  cursor: pointer;
}

/* Login button */
.btn-login {
  width: 100%;
  height: 40px;
  background: var(--brand-orange);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-login:hover:not(:disabled) {
  background: var(--brand-orange-hover);
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.forgot-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forgot-link:hover {
  color: var(--brand-orange);
}

.signup-text {
  font-size: 14px;
  color: var(--text-primary);
}

.signup-link {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-link:hover {
  color: var(--brand-orange);
}

.recaptcha-notice {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 8px;
}

.recaptcha-notice a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.recaptcha-notice a:hover {
  color: var(--text-primary);
}

/* ── Right Promo Panel ── */
.promo-panel {
  flex: 1;
  position: relative;
  display: none;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--promo-green) 0%, var(--promo-green-light) 50%, #0d3d22 100%);
  overflow: hidden;
}

.promo-pattern {
  position: absolute;
  inset: 0;
  background-image: url("https://heathmont.imgix.net/bitcasino/images/promotions/2023/pattern.png?auto=compress,format&w=703&h=723&fit=max&q=50");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
}

.promo-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 64px;
  text-align: center;
  color: #fff;
}

.carousel-image-wrap {
  margin-bottom: 32px;
  max-width: 600px;
  width: 100%;
}

.carousel-main-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  transition: opacity 0.4s ease;
}

.promo-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 32px;
  max-width: 640px;
}

.carousel-slides {
  list-style: none;
  width: 100%;
  max-width: 520px;
  margin-bottom: 24px;
}

.slide {
  display: none;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  padding: 16px 0;
  animation: fadeIn 0.4s ease;
}

.slide.active {
  display: flex;
}

.slide img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.slide h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.slide p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

.dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .login-panel {
    padding: 20px;
  }

  .promo-panel {
    display: block;
  }
}

@media (max-width: 767px) {
  .login-panel {
    max-width: 100%;
    padding: 24px 20px;
  }

  .login-content {
    max-width: 100%;
  }
}
