@font-face {
  font-family: "Geist";
  src: url("/rad_website/static/src/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/rad_website/static/src/fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #14131f;
  --ink-deep: #0a0918;
  --paper: #f4f3ef;
  --cream: #f4f1ea;
  --line: rgba(244, 243, 239, 0.14);
  --line-strong: rgba(244, 243, 239, 0.28);
  --muted: rgba(244, 243, 239, 0.55);
  --coral: #e35a6a;
  --coral-bright: #ef7482;
}

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

html,
body.rad-login-body,
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink) !important;
  font-family: "Geist", Arial, sans-serif !important;
  color: var(--paper) !important;
}

body.rad-login-body,
body.rad-login-body #wrapwrap {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

body.rad-login-body main {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px 16px !important;
}

body.rad-login-body::before,
body.rad-login-body::after {
  display: none !important;
}

/* Dynamic Background Layer */
.rad-login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.rad-login-bg-img {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) contrast(1.05);
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rad-login-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 24, 0.2) 0%, rgba(10, 9, 24, 0.45) 55%, rgba(10, 9, 24, 0.7) 100%),
    radial-gradient(ellipse 90% 70% at 50% 35%, rgba(20, 19, 31, 0.05) 0%, rgba(10, 9, 24, 0.5) 100%);
}

.rad-login-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  z-index: 1;
  margin: auto;
}

.rad-login-coord {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(244, 243, 239, 0.75);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
  padding: 0 2px;
}

.rad-login-coord span:first-child {
  color: var(--coral-bright);
}

.rad-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--coral-bright) !important;
  text-decoration: none !important;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
  cursor: pointer;
}

.rad-back-link svg {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}

.rad-back-link:hover {
  color: #ffffff !important;
  transform: translateX(-2px);
}

.rad-back-link:hover svg {
  transform: translateX(-3px);
}

.rad-login-card {
  background: rgba(14, 13, 24, 0.82) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0px !important;
  padding: 44px 40px 34px !important;
  backdrop-filter: blur(16px);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
}

.rad-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 0px;
  background: linear-gradient(90deg, transparent, var(--coral-bright), transparent);
}

.rad-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}

.rad-brand img {
  display: block;
  margin: 0 auto;
}

.rad-divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 24px;
}

.rad-field {
  margin-bottom: 20px;
}

.rad-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.rad-field label .idx {
  color: var(--coral-bright);
}

.rad-field input {
  width: 100%;
  background: rgba(244, 243, 239, 0.04) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0px !important;
  padding: 13px 14px !important;
  color: var(--paper) !important;
  font-family: 'Geist', Arial, sans-serif !important;
  font-size: 14.5px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s ease, background .2s ease;
}

.rad-field input::placeholder {
  color: rgba(244, 243, 239, 0.3) !important;
}

.rad-field input:focus {
  border-color: var(--coral-bright) !important;
  background: rgba(227, 90, 106, 0.08) !important;
}

/* Password wrapper and visibility toggle */
.rad-password-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.rad-password-wrap input {
  padding-right: 48px !important;
}

.rad-toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  z-index: 5;
}

.rad-toggle-password:hover {
  color: var(--coral-bright);
  background: rgba(239, 116, 130, 0.12);
}

.rad-toggle-password:active {
  transform: translateY(-50%) scale(0.92);
}

.rad-toggle-password .rad-eye-icon {
  width: 17px;
  height: 17px;
  display: block;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.rad-toggle-password .rad-eye-show {
  display: block;
}

.rad-toggle-password .rad-eye-hide {
  display: none;
}

.rad-toggle-password.is-revealed {
  color: var(--coral-bright);
}

.rad-toggle-password.is-revealed .rad-eye-show {
  display: none;
}

.rad-toggle-password.is-revealed .rad-eye-hide {
  display: block;
}

/* Fix browser autofill dark mode styling */
.rad-field input:-webkit-autofill,
.rad-field input:-webkit-autofill:hover, 
.rad-field input:-webkit-autofill:focus, 
.rad-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #1a1828 inset !important;
  box-shadow: 0 0 0 1000px #1a1828 inset !important;
  -webkit-text-fill-color: #f4f3ef !important;
  caret-color: #f4f3ef !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Fixed bottom neutralize banner */
#oe_neutralize_banner,
div:has(> #oe_neutralize_banner),
.oe_neutralize_banner {
  position: fixed !important;
  bottom: 0 !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  text-align: center !important;
  font-size: 11.5px !important;
  font-family: 'Geist Mono', monospace !important;
  letter-spacing: .04em !important;
  background: rgba(208, 68, 44, 0.94) !important;
  backdrop-filter: blur(6px) !important;
  color: #ffffff !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3) !important;
  display: block !important;
}

.rad-submit,
button.rad-submit,
a.rad-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--coral), #d64a5e) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 15px !important;
  font-family: 'Geist', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 26px rgba(227, 90, 106, 0.35) !important;
}

.rad-submit:hover,
button.rad-submit:hover,
a.rad-submit:hover {
  background: linear-gradient(135deg, var(--coral-bright), var(--coral)) !important;
  box-shadow: 0 12px 30px rgba(227, 90, 106, 0.45) !important;
  color: #fff !important;
}

.rad-submit:active,
button.rad-submit:active,
a.rad-submit:active {
  transform: translateY(1px) !important;
}

.rad-submit svg,
button.rad-submit svg,
a.rad-submit svg {
  width: 13px;
  height: 13px;
}

.rad-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(244, 243, 239, 0.35);
}

.rad-foot-below {
  text-align: center;
  margin-top: 22px;
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  color: rgba(244, 243, 239, 0.28);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .rad-login-card {
    animation: radRise .5s ease both;
  }
  @keyframes radRise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 480px) {
  .rad-login-card {
    padding: 34px 24px 28px !important;
  }
}
