@import url("https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap");

:root {
  --nf-color-bg: #010915;
  --nf-color-surface: #081626;
  --nf-color-surface-2: #112239;
  --nf-color-surface-3: #1B314F;
  --nf-color-border: rgba(255, 255, 255, 0.10);
  --nf-color-border-strong: rgba(255, 255, 255, 0.18);
  --nf-color-text: #F8FAFC;
  --nf-color-text-secondary: #A8BBCC;
  --nf-color-text-muted: #7A8BA8;
  --nf-color-primary: #E9A020;
  --nf-color-primary-hover: #D48C10;
  --nf-color-primary-text: #010915;
  --nf-color-secondary: #4AADDB;
  --nf-color-warning: #F76D1A;
  --nf-color-warning-subtle: rgba(247, 109, 26, 0.12);
  --nf-color-glass-bg: rgba(8, 22, 38, 0.86);
  --nf-font-display: "Cabinet Grotesk", "DM Sans", ui-sans-serif, sans-serif;
  --nf-font-body: "Satoshi", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --nf-radius-sm: 0.375rem;
  --nf-radius-md: 0.5rem;
  --nf-radius-lg: 0.75rem;
  --nf-radius-xl: 1rem;
  --nf-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.45);
  --nf-shadow-focus: 0 0 0 3px rgba(74, 173, 219, 0.45);
  --nf-gradient-hero:
    radial-gradient(ellipse 75% 60% at 70% 20%, rgba(233, 160, 32, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 12% 88%, rgba(74, 173, 219, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #010915 0%, #081626 100%);
  --nf-gradient-gold: linear-gradient(155deg, #F5C842 0%, #E9A020 52%, #C47A0A 100%);
  --nf-gradient-gold-hover: linear-gradient(155deg, #FFDE6E 0%, #F0AE28 52%, #D48C10 100%);
  --nf-transition-base: background-color 140ms cubic-bezier(0.16, 1, 0.3, 1),
    color 140ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 140ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

html,
body {
  min-height: 100%;
  background: var(--nf-color-bg);
}

body {
  color: var(--nf-color-text);
  font-family: var(--nf-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nf-auth-page {
  align-items: center;
  background: var(--nf-gradient-hero);
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 24px 16px;
  position: relative;
  text-align: left;
}

.nf-auth-page::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(90deg, rgba(233, 160, 32, 0.08) 0%, transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.nf-auth-page .container,
.nf-auth-page .row,
.nf-auth-page [class*="col-"] {
  max-width: none;
  padding: 0;
  width: 100%;
}

.nf-auth-shell {
  margin: 0 auto;
  max-width: 460px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.nf-auth-shell-wide {
  max-width: 640px;
}

.nf-auth-home {
  align-items: center;
  border: 1px solid var(--nf-color-border);
  border-radius: 9999px;
  color: var(--nf-color-text-secondary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  text-decoration: none;
  transition: var(--nf-transition-base);
}

.nf-auth-home:hover,
.nf-auth-home:focus {
  border-color: var(--nf-color-border-strong);
  color: var(--nf-color-text);
  text-decoration: none;
  transform: translateY(-1px);
}

.nf-auth-panel {
  background: var(--nf-color-glass-bg);
  border: 1px solid var(--nf-color-border);
  border-radius: var(--nf-radius-xl);
  box-shadow: var(--nf-shadow-lg);
  margin-top: 18px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.nf-auth-panel::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0) 72%);
  content: "";
  height: 120px;
  inset: 0 0 auto;
  pointer-events: none;
  position: absolute;
}

.nf-auth-kicker {
  color: var(--nf-color-primary);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 8px;
  position: relative;
  text-transform: uppercase;
}

.nf-auth-title {
  color: var(--nf-color-text);
  font-family: var(--nf-font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
  position: relative;
}

.nf-auth-copy {
  color: var(--nf-color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 36rem;
  position: relative;
}

.nf-auth-notice {
  background: var(--nf-color-warning-subtle);
  border: 1px solid rgba(247, 109, 26, 0.30);
  border-radius: var(--nf-radius-lg);
  color: var(--nf-color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 18px 0 20px;
  padding: 13px 14px;
  position: relative;
}

.nf-auth-notice strong {
  color: var(--nf-color-warning);
  font-weight: 700;
}

.nf-auth-form {
  margin-top: 22px;
  position: relative;
}

.nf-auth-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nf-auth-form .form-group {
  margin-bottom: 14px;
  position: relative;
}

.nf-auth-field-label {
  color: var(--nf-color-text-secondary);
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 7px;
}

.nf-auth-form .form-control-input,
.nf-auth-form .form-control,
.nf-auth-form select.form-control {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(1, 9, 21, 0.42);
  border: 1px solid var(--nf-color-border);
  border-radius: var(--nf-radius-md);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.32);
  color: var(--nf-color-text);
  display: block;
  font-family: var(--nf-font-body);
  font-size: 16px;
  height: 48px;
  line-height: 1.4;
  padding: 12px 14px;
  transition: var(--nf-transition-base);
  width: 100%;
}

.nf-auth-form select.form-control {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--nf-color-text-secondary) 50%),
    linear-gradient(135deg, var(--nf-color-text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.nf-auth-form .form-control-input:focus,
.nf-auth-form .form-control:focus,
.nf-auth-form select.form-control:focus {
  background: rgba(8, 22, 38, 0.78);
  border-color: var(--nf-color-secondary);
  box-shadow: var(--nf-shadow-focus);
  color: var(--nf-color-text);
  outline: 0;
}

.nf-auth-form .form-control-input:hover,
.nf-auth-form .form-control:hover,
.nf-auth-form select.form-control:hover {
  border-color: var(--nf-color-border-strong);
}

.nf-auth-form .form-control-input::placeholder,
.nf-auth-form .form-control::placeholder {
  color: var(--nf-color-text-muted);
}

.nf-auth-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nf-auth-check {
  align-items: flex-start;
  color: var(--nf-color-text-secondary);
  display: inline-flex;
  font-size: 14px;
  gap: 9px;
  line-height: 1.5;
  margin: 0;
}

.nf-auth-check input {
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.nf-auth-link,
.nf-auth-page a {
  color: var(--nf-color-secondary);
  font-weight: 700;
  text-decoration: none;
}

.nf-auth-link:hover,
.nf-auth-page a:hover {
  color: #7DCAEA;
  text-decoration: none;
}

.nf-auth-submit,
.nf-auth-form .form-control-submit-button {
  align-items: center;
  background: var(--nf-gradient-gold);
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 0 24px rgba(233, 160, 32, 0.25), 0 4px 16px rgba(0, 0, 0, 0.55);
  color: var(--nf-color-primary-text);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--nf-font-body);
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  transition: var(--nf-transition-base);
  width: 100%;
}

.nf-auth-submit:hover,
.nf-auth-form .form-control-submit-button:hover {
  background: var(--nf-gradient-gold-hover);
  box-shadow: 0 0 38px rgba(233, 160, 32, 0.32), 0 8px 24px rgba(0, 0, 0, 0.62);
  color: var(--nf-color-primary-text);
  transform: translateY(-1px);
}

.nf-auth-submit:active,
.nf-auth-form .form-control-submit-button:active {
  transform: translateY(0);
}

.nf-auth-footer {
  color: var(--nf-color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 18px 0 0;
  text-align: center;
}

.nf-auth-form #alert-message {
  margin: 0;
}

.nf-auth-form .alert-message-reponse:not(:empty) {
  border-radius: var(--nf-radius-md);
  font-size: 14px;
}

.nf-auth-form .g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 2px 0 4px;
  max-width: 100%;
  overflow: hidden;
}

.nf-auth-form .custom-control,
.nf-auth-form .checkbox {
  margin: 0;
  text-align: left;
}

.nf-auth-form .custom-control-label {
  color: var(--nf-color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.nf-auth-form .custom-control-input {
  min-height: 18px;
  min-width: 18px;
}

.nf-auth-page .abcRioButton,
.nf-auth-page .social-login {
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .nf-auth-page {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px 14px;
  }

  .nf-auth-shell {
    max-width: 100%;
  }

  .nf-auth-panel {
    border-radius: var(--nf-radius-lg);
    margin-top: 14px;
    padding: 22px 18px;
  }

  .nf-auth-grid {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .nf-auth-title {
    font-size: 28px;
  }

  .nf-auth-copy,
  .nf-auth-notice {
    font-size: 14px;
  }

  .nf-auth-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
