/* Zenvora Login Layout - Two Panel Structure */
body[data-path="login"] {
  background-color: #0b2037;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Reset Frappe wrappers */
body[data-path="login"] main.container,
body[data-path="login"] .page-content-wrapper,
body[data-path="login"] .page_content,
body[data-path="login"] .page_content > div {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
}

.zen-login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Panel - Branding */
.zen-login-brand {
  flex: 0 0 50%;
  width: 50%;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 223, 107, 0.09), transparent 32%),
    radial-gradient(circle at 20% 74%, rgba(255, 223, 107, 0.08), transparent 28%),
    linear-gradient(140deg, #102944 0%, #0b2038 46%, #091a2d 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 6vw, 7rem);
  position: relative;
  overflow: hidden;
}

.zen-brand-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.zen-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 223, 107, 0.82);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.zen-brand-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 223, 107, 0.8);
}

.zen-brand-mark {
  display: block;
  width: clamp(150px, 14vw, 230px);
  height: auto;
  margin-bottom: 3rem;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.24));
}

.zen-login-brand h1 {
  font-size: clamp(4rem, 6.4vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin: 0 0 2rem;
  color: #ffffff;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.zen-login-brand p {
  font-size: clamp(1.2rem, 1.45vw, 1.75rem);
  color: rgba(235, 241, 248, 0.78);
  max-width: 460px;
  line-height: 1.55;
  margin: 0;
}

.zen-brand-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3.25rem;
}

.zen-brand-points span {
  border: 1px solid rgba(255, 223, 107, 0.26);
  border-radius: 999px;
  color: rgba(255, 244, 194, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.62rem 0.95rem;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

/* Subtle background accent */
.zen-brand-accent {
  position: absolute;
  top: -16%;
  right: -16%;
  width: 64%;
  height: 64%;
  background: radial-gradient(circle, rgba(255, 223, 107, 0.14) 0%, rgba(10, 37, 64, 0) 68%);
  border-radius: 50%;
}

.zen-brand-orbit {
  position: absolute;
  border: 1px solid rgba(255, 223, 107, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.zen-brand-orbit-one {
  width: 52vw;
  height: 52vw;
  right: -23vw;
  top: 8vh;
}

.zen-brand-orbit-two {
  width: 34vw;
  height: 34vw;
  left: -12vw;
  bottom: -11vw;
}

/* Right Panel - Form */
.zen-login-form-area {
  flex: 0 0 50%;
  width: 50%;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 223, 107, 0.13), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(10, 37, 64, 0.07), transparent 32%),
    linear-gradient(140deg, #fffdf6 0%, #fbfaf6 48%, #f4f7fb 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 4vw, 4.5rem);
  box-shadow: inset 1px 0 0 rgba(10, 37, 64, 0.08), -22px 0 60px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.zen-login-form-area > section {
  width: min(100%, 430px);
}

.login-content.page-card {
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 3.4vw, 3rem);
  border: 1px solid rgba(10, 37, 64, 0.09);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.91)),
    #ffffff;
  box-shadow: 0 34px 90px rgba(10, 37, 64, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

/* Frappe form overrides */
.form-signin {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.page-card-head {
  display: block !important;
  margin-bottom: 1.75rem;
  text-align: left;
}

.page-card-head .mobile-only-logo {
  display: none;
}

.page-card-head h4 {
  color: #0A2540;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 0.55rem;
}

.page-card-subtitle {
  color: rgba(10, 37, 64, 0.58);
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 0;
}

.page-card-body {
  padding: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  margin-bottom: 0.45rem;
  color: rgba(10, 37, 64, 0.68);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-signin h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.form-signin .form-control {
  min-height: 50px;
  padding: 0.78rem 1rem 0.78rem 2.75rem;
  border-radius: 14px;
  border: 1px solid rgba(10, 37, 64, 0.13);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-signin .form-control:focus {
  border-color: rgba(10, 37, 64, 0.38);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 223, 107, 0.24);
}

.form-signin .form-control::placeholder {
  color: rgba(10, 37, 64, 0.36);
}

.email-field,
.password-field {
  position: relative;
}

.field-icon {
  left: 0.95rem;
  color: rgba(10, 37, 64, 0.36);
  opacity: 1;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.toggle-password {
  cursor: pointer;
  color: rgba(10, 37, 64, 0.36);
  opacity: 1;
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
}

.password-field .form-control {
  padding-right: 2.6rem;
}

.forgot-password-message {
  margin: 0.45rem 0 0;
  text-align: right;
}

.forgot-password-message a,
.sign-up-message a,
.resend-link a {
  color: #0A2540;
  font-weight: 600;
}

.forgot-password-message a:hover,
.sign-up-message a:hover,
.resend-link a:hover {
  color: #143f69;
}

.page-card-actions {
  margin-top: 1.25rem;
  padding: 0;
}

.form-signin .btn-primary,
.page-card-actions .btn-login,
.page-card-actions .btn-signup,
.page-card-actions .btn-forgot {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #111111;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-top: 0;
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.page-card-actions .btn-login:hover,
.page-card-actions .btn-signup:hover,
.page-card-actions .btn-forgot:hover {
  background: #0A2540;
  box-shadow: 0 16px 30px rgba(10, 37, 64, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-login-with-email-link,
.for-login-with-email-link {
  display: none !important;
}

.sign-up-message,
.resend-link {
  color: rgba(10, 37, 64, 0.58);
}

/* Mobile responsive */
@media (max-width: 900px) {
  body[data-path="login"] {
    overflow: auto;
  }

  .zen-login-brand {
    display: none;
  }
  .zen-login-form-area {
    flex: 1 1 100%;
    width: 100%;
    min-height: 100vh;
    padding: 1.25rem;
  }

  .zen-login-form-area > section {
    width: min(100%, 420px);
  }

  .page-card-head {
    text-align: center;
  }

  .page-card-head .mobile-only-logo {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto 1.5rem auto;
  }

  .login-content.page-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .form-signin {
    max-width: 100%;
    margin: 0 auto;
  }
}
