* {
  box-sizing: border-box;
}

body.wmc-auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #2454b8, #356bd6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.wmc-auth-card {
  width: 100%;
  max-width: 980px;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
}

.wmc-auth-left {
  background: linear-gradient(135deg, #2454b8, #2f65d0);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 45px 35px;
}

.wmc-auth-logo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.wmc-auth-logo img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
}

.wmc-auth-left h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
}

.wmc-auth-left p {
  margin: 0;
  font-size: 16px;
  color: #e0ebff;
}

.wmc-auth-right {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 42px;
}

.wmc-auth-form {
  width: 100%;
  max-width: 430px;
}

.wmc-auth-form h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 28px;
  color: #1e4fa8;
  font-weight: 900;
}

.wmc-auth-form .subtitle {
  margin: 0 0 24px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.wmc-auth-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
  color: #1e4fa8;
}

.wmc-auth-form input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #eef4ff;
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
}

.wmc-auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.wmc-auth-form button {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: #2f5fbe;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 4px;
}

.wmc-auth-form button:hover {
  background: #244fa5;
}

.wmc-auth-links {
  margin-top: 18px;
  text-align: center;
}

.wmc-auth-links p {
  margin: 11px 0;
  color: #64748b;
  font-size: 15px;
}

.wmc-auth-links a {
  color: #1e4fa8;
  font-weight: 900;
  text-decoration: none;
}

.wmc-auth-links a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 700;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 850px) {
  .wmc-auth-card {
    grid-template-columns: 1fr;
  }

  .wmc-auth-left,
  .wmc-auth-right {
    padding: 34px 24px;
  }
}
/* Register form improvements */
.wmc-auth-form select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #eef4ff;
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
}

.wmc-auth-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.auth-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.password-hint {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

@media (max-width: 560px) {
  .auth-name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* Auth links and forgot password position fix */
.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: -8px;
  margin-bottom: 16px;
}

.forgot-password-row a {
  color: #1e4fa8;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.forgot-password-row a:hover {
  text-decoration: underline;
}

.wmc-auth-links {
  margin-top: 18px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.wmc-auth-links p {
  margin: 8px 0;
  color: #64748b;
  font-size: 15px;
}

.wmc-auth-links a {
  color: #1e4fa8;
  font-weight: 900;
  text-decoration: none;
}

.wmc-auth-links a:hover {
  text-decoration: underline;
}

/* Make forgot/reset pages look balanced */
.wmc-auth-form form + .wmc-auth-links {
  margin-top: 18px;
}

.wmc-auth-form button {
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.wmc-auth-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

/* =========================================================
   RESPONSIVE AUTH PAGES FIX
   ========================================================= */
@media (max-width: 900px) {
  body.wmc-auth-page {
    padding: 18px;
    align-items: flex-start;
  }

  .wmc-auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 560px;
  }

  .wmc-auth-left {
    padding: 28px 22px;
  }

  .wmc-auth-logo {
    width: 92px;
    height: 92px;
    margin-bottom: 14px;
  }

  .wmc-auth-logo img {
    width: 74px;
    height: 74px;
  }

  .wmc-auth-left h1 {
    font-size: 28px;
  }

  .wmc-auth-right {
    padding: 28px 22px;
  }
}

@media (max-width: 520px) {
  body.wmc-auth-page {
    padding: 10px;
  }

  .wmc-auth-card {
    border-radius: 18px;
  }

  .wmc-auth-left {
    padding: 22px 16px;
  }

  .wmc-auth-left h1 {
    font-size: 24px;
  }

  .wmc-auth-left p,
  .wmc-auth-form .subtitle {
    font-size: 13px;
  }

  .wmc-auth-right {
    padding: 22px 16px;
  }

  .wmc-auth-form h2 {
    font-size: 23px;
  }

  .wmc-auth-form input,
  .wmc-auth-form select,
  .wmc-auth-form button {
    height: 46px;
    font-size: 14px;
    border-radius: 12px;
  }

  .forgot-password-row {
    justify-content: center;
    margin-top: -2px;
  }
}
