/* Login split-screen (front-page + wp-login.php) */

body.login *:focus,
body.login *:focus-visible,
.ep-login-view *:focus,
.ep-login-view *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.ep-login-view .ep-login-shell,
body.login {
  min-height: 100vh;
  margin: 0;
  background: #f0f1f4;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.ep-login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.ep-login-visual {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 66, 66, 0.45), transparent 45%),
    linear-gradient(145deg, #ef4242 0%, #000000 100%);
  overflow: hidden;
}

.ep-login-visual__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  color: #fff;
}

.ep-login-visual__brand {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ep-login-visual__tag {
  margin: 8px 0 0;
  font-size: 18px;
  opacity: 0.85;
}

.ep-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 40px 24px;
}

.ep-login-panel__inner {
  width: 100%;
  max-width: 400px;
}

.ep-login-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #000000;
}

.ep-login-sub {
  margin: 0 0 28px;
  color: #6b7280;
  font-size: 15px;
}

.ep-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 28px;
  padding: 6px;
  border-radius: 14px;
  background: #f0f1f4;
}

.ep-auth-tabs__btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ep-auth-tabs__btn.is-active {
  background: #fff;
  color: #000000;
  box-shadow: 0 1px 2px rgba(0, 0, 48, 0.08);
}

.ep-auth-panel[hidden] {
  display: none !important;
}

#ep-loginform p,
.ep-login-panel .login-username,
.ep-login-panel .login-password,
.ep-login-panel .login-remember,
.ep-login-panel .login-submit {
  margin: 0 0 14px;
}

#ep-loginform label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

#ep-loginform input[type="text"],
#ep-loginform input[type="email"],
#ep-loginform input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  background: #fafafa;
  color: #000000;
}

#ep-loginform input:focus {
  outline: none;
  border-color: #e4e6eb;
  background: #fff;
  box-shadow: none;
}

#ep-loginform .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

#ep-loginform .login-remember label {
  margin: 0;
  font-weight: 500;
}

#ep-loginform .button,
#ep-loginform input[type="submit"] {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: #ef4242;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

#ep-loginform .button:hover,
#ep-loginform input[type="submit"]:hover {
  background: #d63636;
}

.ep-login-lost {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
}

.ep-login-lost a {
  color: #ef4242;
  text-decoration: none;
}

.ep-login-lost a:hover {
  text-decoration: underline;
}

/* ——— Ultimate Member register (homepage) ——— */
.ep-register-form .um {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.ep-register-form .um-form {
  margin: 0;
}

.ep-register-form .um-field {
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.ep-register-form .um-field-label {
  margin: 0 0 6px !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}

.ep-register-form .um-field-label label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

.ep-register-form .um-field-area {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

.ep-register-form .um-form input[type="text"],
.ep-register-form .um-form input[type="email"],
.ep-register-form .um-form input[type="password"],
.ep-register-form .um-form input[type="number"],
.ep-register-form .um-form select,
.ep-register-form .um-form textarea {
  width: 100% !important;
  max-width: none !important;
  height: 48px !important;
  padding: 0 14px !important;
  border: 1px solid #e4e6eb !important;
  border-radius: 12px !important;
  font: inherit !important;
  font-size: 15px !important;
  background: #fafafa !important;
  color: #000000 !important;
  box-shadow: none !important;
}

.ep-register-form .um-form input:focus {
  outline: none !important;
  border-color: #e4e6eb !important;
  background: #fff !important;
  box-shadow: none !important;
}

.ep-register-form .um-button,
.ep-register-form input[type="submit"].um-button {
  width: 100% !important;
  height: 50px !important;
  margin: 8px 0 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: #ef4242 !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer;
}

.ep-register-form .um-button:hover,
.ep-register-form input[type="submit"].um-button:hover {
  background: #d63636 !important;
}

.ep-register-form .um-field-error,
.ep-register-form .um-notice {
  border-radius: 10px;
  font-size: 13px;
}

.ep-register-form .um-left,
.ep-register-form .um-right,
.ep-register-form .um-half {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ep-register-form .um-col-alt,
.ep-register-form .um-col-alt-b {
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 860px) {
  .ep-login-layout {
    grid-template-columns: 1fr;
  }

  .ep-login-visual {
    min-height: 180px;
  }

  .ep-login-visual__inner {
    justify-content: center;
    padding: 28px;
  }

  .ep-login-visual__brand {
    font-size: 36px;
  }
}

/* ——— Native wp-login.php ——— */
body.login {
  display: flex;
  align-items: stretch;
  background: #fff !important;
}

body.login #login {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 40px 24px;
}

body.login #login h1 a {
  background-image: none !important;
  text-indent: 0;
  width: auto;
  height: auto;
  font-size: 28px;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
}

body.login form {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

body.login input[type="text"],
body.login input[type="password"] {
  border-radius: 12px;
  border-color: #e4e6eb;
  background: #fafafa;
  font-size: 15px;
  padding: 8px 14px;
  min-height: 48px;
}

body.login .button-primary {
  width: 100%;
  height: 50px;
  border: none !important;
  border-radius: 999px !important;
  background: #ef4242 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

body.login .button-primary:hover {
  background: #d63636 !important;
}

body.login #nav,
body.login #backtoblog {
  text-align: center;
  padding: 0;
}

body.login #nav a,
body.login #backtoblog a {
  color: #ef4242;
}
