/* Login / Create Account — background image + two-stage intro → form */

.royal-login-page {
  margin: 0;
  min-height: 100vh;
}

.royal-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  background-color: #fff;
  background-image: var(--royal-login-bg-desktop);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.royal-login__inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.royal-login__intro,
.royal-login__form-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 380px;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.royal-login__intro {
  opacity: 1;
  visibility: visible;
  text-align: center;
}

.royal-login__form-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.royal-login.is-reveal .royal-login__intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.royal-login.is-reveal .royal-login__form-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .royal-login__intro,
  .royal-login__form-card {
    transition: none;
  }
}

.royal-login__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.royal-login__logo-img {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(72%) sepia(26%) saturate(638%) hue-rotate(5deg) brightness(95%) contrast(92%);
}

.royal-login__wordmark {
  font-family: "Aleo", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8860b;
}

.royal-login__tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.royal-login__tab {
  appearance: none;
  background: #fff;
  flex: 1;
  text-align: center;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 10px;
  color: #5c1a2e;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.royal-login__tab.is-active {
  background: #5c1a2e;
  color: #fff;
  border-color: #5c1a2e;
}

.royal-login__title {
  margin: 0 0 8px;
  font-family: "Aleo", Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 700;
  color: #5c1a2e;
  text-align: center;
}

.royal-login__title-line {
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 auto 22px;
  background: #5c1a2e;
  border-radius: 2px;
}

.royal-login__notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.royal-login__notice--error {
  background: #fdeaea;
  color: #8b1e1e;
}

.royal-login__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
}

.royal-login__input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.royal-login__input:focus {
  outline: 2px solid rgba(92, 26, 46, 0.35);
  outline-offset: 1px;
  border-color: #5c1a2e;
}

.royal-login__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #f5c518;
  cursor: pointer;
}

.royal-login__submit:hover {
  filter: brightness(0.97);
}

.royal-login__google {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  color: #444;
  background: #f3f3f3;
  cursor: not-allowed;
  opacity: 0.85;
}

.royal-login__google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #4285f4;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.royal-login__footer-text {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.royal-login__footer-text a {
  color: #5c1a2e;
  font-weight: 600;
}

.royal-login__switch {
  border: 0;
  background: transparent;
  color: #5c1a2e;
  font-weight: 600;
  padding: 0;
  margin: 0 0 0 4px;
  cursor: pointer;
  text-decoration: underline;
}

.royal-login__guest-form {
  margin-top: 12px;
}

.royal-login__input--guest {
  margin-bottom: 10px;
}

.royal-login__guest-box {
  margin-top: 20px;
  border-top: 1px solid #ececec;
  padding-top: 16px;
}

.royal-login__guest-title {
  margin: 0 0 14px;
  color: #5c1a2e;
  font-family: "Aleo", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
}

.royal-login__guest-submit {
  width: 100%;
  border: 0;
  background: #f5c518;
  color: #1f1305;
  border-radius: 8px;
  padding: 13px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.royal-login__guest-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #5c1a2e;
}

@media (max-width: 960px) {
  .royal-login {
    background-image: var(--royal-login-bg-mobile, var(--royal-login-bg-desktop));
  }

  .royal-login__form-card{
    box-shadow: none;
    top: 90%;
  }
}