/* WPLaws.ai — Login (Walalangi & Partners Corporate Luxury Dark & Gold) */

:root {
  /* Walalangi & Partners Corporate Luxury Dark & Gold */
  --bg: #0c0c10;
  --bg-deep: #08080a;
  --surface: rgba(18, 18, 24, 0.78);
  --surface-2: rgba(26, 26, 36, 0.90);
  --surface-3: rgba(40, 40, 54, 0.45);
  --border: rgba(224, 179, 105, 0.22);
  --border-strong: rgba(224, 179, 105, 0.48);
  --text: #f4f4f6;
  --text-gold: #f4d89e;
  --text-soft: #a1a1aa;
  --text-muted: rgba(244, 244, 246, 0.60);
  --text-faint: rgba(244, 244, 246, 0.36);

  --accent: #e0b369;
  --accent-light: #f4d89e;
  --accent-dark: #996515;
  --accent-dim: rgba(224, 179, 105, 0.16);
  --accent-glow: 0 0 28px rgba(224, 179, 105, 0.28);

  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.15);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] {
  --bg: #0c0c10;
  --bg-deep: #08080a;
  --surface: rgba(18, 18, 24, 0.78);
  --surface-2: rgba(26, 26, 36, 0.90);
  --surface-3: rgba(40, 40, 54, 0.45);
  --border: rgba(224, 179, 105, 0.22);
  --border-strong: rgba(224, 179, 105, 0.48);
  --text: #f4f4f6;
  --text-gold: #f4d89e;
  --text-soft: #a1a1aa;
  --text-muted: rgba(244, 244, 246, 0.60);
  --text-faint: rgba(244, 244, 246, 0.36);

  --accent: #e0b369;
  --accent-light: #f4d89e;
  --accent-dark: #996515;
  --accent-dim: rgba(224, 179, 105, 0.16);
  --accent-glow: 0 0 28px rgba(224, 179, 105, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.font-cinzel {
  font-family: 'Cinzel', serif !important;
  letter-spacing: 0.04em;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}

button,
input {
  font-family: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #08080a;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(224, 179, 105, 0.16), transparent 70%),
    url('../assets/walalangi/bg-login.jpg') center 36% / cover no-repeat;
  filter: brightness(0.98) contrast(1.06);
  pointer-events: none;
  transform: scale(var(--bg-scale, 1.15)) translate3d(var(--bg-tx, 0px), var(--bg-ty, 0px), 0);
  will-change: transform;
}

[data-theme="dark"] .login-shell::before {
  filter: brightness(0.98) contrast(1.06);
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(224, 179, 105, 0.16), transparent 70%),
    url('../assets/walalangi/bg-login.jpg') center 36% / cover no-repeat;
  transform: scale(var(--bg-scale, 1.15)) translate3d(var(--bg-tx, 0px), var(--bg-ty, 0px), 0);
  will-change: transform;
}

.login-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(800px circle at var(--mouse-px, 50%) var(--mouse-py, 45%), rgba(224, 179, 105, 0.08), transparent 70%),
    linear-gradient(90deg,
      rgba(8, 8, 11, 0.92) 0%,
      rgba(8, 8, 11, 0.70) 22%,
      rgba(8, 8, 11, 0.04) 44%,
      rgba(8, 8, 11, 0.18) 58%,
      rgba(8, 8, 11, 0.78) 72%,
      rgba(8, 8, 11, 0.94) 100%),
    linear-gradient(180deg,
      rgba(8, 8, 11, 0.45) 0%,
      transparent 18%,
      transparent 68%,
      rgba(8, 8, 11, 0.92) 100%);
  pointer-events: none;
}

[data-theme="dark"] .login-shell::after {
  background:
    radial-gradient(800px circle at var(--mouse-px, 50%) var(--mouse-py, 45%), rgba(224, 179, 105, 0.08), transparent 70%),
    linear-gradient(90deg,
      rgba(8, 8, 11, 0.92) 0%,
      rgba(8, 8, 11, 0.70) 22%,
      rgba(8, 8, 11, 0.04) 44%,
      rgba(8, 8, 11, 0.18) 58%,
      rgba(8, 8, 11, 0.78) 72%,
      rgba(8, 8, 11, 0.94) 100%),
    linear-gradient(180deg,
      rgba(8, 8, 11, 0.45) 0%,
      transparent 18%,
      transparent 68%,
      rgba(8, 8, 11, 0.92) 100%);
}

.login-shell>* {
  position: relative;
  z-index: 2;
}

/* Hero Aside */
.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  min-height: 0;
}

.login-hero-badge {
  margin-bottom: 20px;
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #f4d89e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gold-badge i {
  font-size: 14px;
  color: var(--accent);
}

.login-hero-copy {
  margin-top: auto;
  margin-bottom: 20px;
  max-width: 480px;
}

.login-hero-copy h1 {
  font-size: 28px;
  letter-spacing: 3px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, #f4d89e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .login-hero-copy h1 {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 30%, #f3e2b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-hero-copy p {
  font-size: 12px;
  line-height: 1.55;
  color: rgb(200 196 188 / 70%);
  max-width: 440px;
  font-style: normal;
}

[data-theme="dark"] .login-hero-copy p {
  color: rgb(200 196 188 / 70%);
}

.login-roles-header {
  margin-top: 0;
  margin-bottom: 12px;
}

.roles-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.login-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.login-role {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 130px;
  padding: 13px 15px;
  background: rgba(18, 20, 26, 0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

[data-theme="dark"] .login-role {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.login-role::before {
  display: none;
}

.login-role:hover {
  background: rgba(26, 28, 36, 0.82);
  border-color: rgba(224, 179, 105, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(224, 179, 105, 0.15);
}

[data-theme="dark"] .login-role:hover {
  background: rgba(26, 28, 36, 0.82);
}

.login-role.is-active {
  background: transparent;
  border: 1px solid #e0b369;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(224, 179, 105, 0.22);
  transform: translateY(-2px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .login-role.is-active {
  background: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: #e0b369;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(224, 179, 105, 0.22);
}

.login-role-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.70);
  flex-shrink: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.login-role.is-active .login-role-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #0c0c10;
}

.login-role-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.login-role-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(224, 179, 105, 0.40);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  display: block;
  transition: var(--transition);
}

.login-role:hover .login-role-avatar {
  border-color: rgba(224, 179, 105, 0.75);
  transform: scale(1.05);
}

.login-role.is-active .login-role-avatar {}

.login-role-icon {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.50);
  flex-shrink: 0;
}

.login-role.is-active .login-role-icon {
  color: var(--accent);
}

.login-role-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.login-role-body strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  white-space: normal;
  display: block;
}

[data-theme="dark"] .login-role-body strong {
  color: #ffffff;
}

.login-role-body em {
  font-size: 10.5px;
  color: var(--text-soft);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.login-hero-footer {
  margin-top: 16px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #71717a;
}

[data-theme="dark"] .trust-pill {
  color: rgba(255, 255, 255, 0.55);
}

.trust-pill i {
  color: var(--accent);
}

/* Right Panel */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: transparent;
  border-left: none;
  box-shadow: none;
}

[data-theme="dark"] .login-panel {
  background: transparent;
  border-left: none;
  box-shadow: none;
}

.login-panel-inner {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
  padding: 34px 32px;
  border-radius: 20px;
  border: 0;
  box-shadow: none;
}

.login-panel-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.login-panel-logo .logo-holder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 220px;
}

.login-panel-logo .logo-holder a {
  display: flex;
  align-items: center;
}

.login-panel-logo .wp-brand-logo {
  width: 100%;
  height: auto;
  max-height: 48px;
  display: block;
  object-fit: contain;
}

/* Light / Dark Mode logo swapping */
html[data-theme="light"] .wp-brand-logo--dark {
  display: none !important;
}

html[data-theme="light"] .wp-brand-logo--light {
  display: block !important;
}

html[data-theme="dark"] .wp-brand-logo--light {
  display: none !important;
}

html[data-theme="dark"] .wp-brand-logo--dark {
  display: block !important;
}

.logo-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  align-self: center;
}

.login-panel-head {
  text-align: center;
}

.login-panel-head h2 {
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 6px;
}

[data-theme="dark"] .login-panel-head h2 {
  color: #ffffff;
}

.login-panel-head p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 12px;
  font-weight: 500;
  color: #d4d4d8;
  letter-spacing: 0.02em;
  text-transform: none;
}

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 11.5px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.forgot-link:hover {
  color: var(--accent);
}

.input-with-icon,
.login-password {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.field-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: rgba(224, 179, 105, 0.75);
  z-index: 3;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
}

.input-with-icon:focus-within .field-icon,
.login-password:focus-within .field-icon {
  color: var(--accent);
}

.input-with-icon input,
.login-password input,
.login-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: rgba(22, 23, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .input-with-icon input,
[data-theme="dark"] .login-password input,
[data-theme="dark"] .login-field input {
  background: rgba(22, 23, 30, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.input-with-icon input,
.login-password input {
  padding-left: 58px;
}

.login-password input {
  padding-right: 58px;
}

@media (pointer: coarse),
(hover: none) {

  .login-field input,
  .input-with-icon input,
  .login-password input {
    font-size: 16px !important;
  }
}

.input-with-icon input:focus,
.login-password input:focus,
.login-field input:focus {
  border-color: #e0b369;
  background: rgba(28, 28, 38, 0.92);
  box-shadow: 0 0 0 3px rgba(224, 179, 105, 0.20), 0 0 16px rgba(224, 179, 105, 0.16);
}

[data-theme="dark"] .input-with-icon input:focus,
[data-theme="dark"] .login-password input:focus,
[data-theme="dark"] .login-field input:focus {
  background: rgba(28, 28, 38, 0.92);
  box-shadow: 0 0 0 3px rgba(224, 179, 105, 0.20), 0 0 16px rgba(224, 179, 105, 0.16);
}

.login-eye {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-muted);
  transition: color 0.15s ease;
  z-index: 3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-eye:hover {
  color: var(--text-gold);
}

.login-hint {
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 4px;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: linear-gradient(135deg, #e0b369 0%, #c59b53 50%, #996515 100%);
  border: none;
  border-radius: 10px;
  color: #0c0c10;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(224, 179, 105, 0.28);
  transition: var(--transition);
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(224, 179, 105, 0.40);
  filter: brightness(1.08);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.login-security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  padding: 6px 0;
  background: transparent;
  border: none;
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.4;
  text-align: left;
  margin-top: 4px;
}

[data-theme="dark"] .login-security-notice {
  color: var(--text-soft);
  background: transparent;
  border: none;
}

.login-security-notice i {
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
  margin-right: 12px;
}

/* Gold Fullscreen Button (Top-Right) */
.login-fullscreen-btn {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #e0b369;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-fullscreen-btn:hover {
  color: #f4d89e;
}

.login-fullscreen-btn:active {}