:root{
  --bg:#07070a;
  --panel:#101016;
  --panel2:#15131c;
  --text:#f7f3fb;
  --muted:#9d96a5;
  --line:rgba(255,255,255,.09);
  --violet:#8b5cf6;
  --violet2:#c084fc;
  --pink:#ef5da8;
  --green:#62e7aa;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 75% 10%,rgba(139,92,246,.14),transparent 30%),
    linear-gradient(135deg,#07070a,#0b0910 48%,#07070a);
}
a{color:inherit;text-decoration:none}
.auth-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px 18px;
}
.auth-card{
  width:min(100%,460px);
  border:1px solid var(--line);
  border-radius:18px;
  padding:34px;
  background:linear-gradient(145deg,rgba(21,19,28,.97),rgba(12,11,16,.99));
  box-shadow:0 35px 90px rgba(0,0,0,.42);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:34px;
}
.brand img{width:38px;height:38px;object-fit:contain}
.brand b{
  display:block;
  letter-spacing:.14em;
  font-size:13px;
}
.brand small{
  color:#817987;
  letter-spacing:.2em;
  font-size:8px;
}
h1{
  margin:0 0 10px;
  font-size:31px;
  letter-spacing:-.04em;
}
.copy{
  color:var(--muted);
  line-height:1.65;
  font-size:14px;
  margin:0 0 26px;
}
label{
  display:grid;
  gap:8px;
  font-size:12px;
  font-weight:700;
  margin:15px 0;
}
input{
  width:100%;
  padding:13px 14px;
  border-radius:9px;
  border:1px solid var(--line);
  background:#0a090d;
  color:var(--text);
  outline:none;
}
input:focus{
  border-color:rgba(192,132,252,.55);
  box-shadow:0 0 0 3px rgba(139,92,246,.1);
}
button,.button{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:center;
  padding:13px 16px;
  border-radius:9px;
  border:1px solid rgba(192,132,252,.32);
  color:white;
  background:rgba(139,92,246,.12);
  cursor:pointer;
  font-weight:800;
  font-size:13px;
}
.primary{
  border:0;
  background:linear-gradient(110deg,#7c3aed,#a855f7 55%,#d9468f);
  box-shadow:0 12px 35px rgba(139,92,246,.2);
}
.discord{
  background:#5865f2;
  border-color:#5865f2;
}
.divider{
  display:flex;
  align-items:center;
  gap:13px;
  margin:23px 0;
  color:#77707f;
  font-size:11px;
}
.divider:before,.divider:after{
  content:"";
  height:1px;
  background:var(--line);
  flex:1;
}
.bottom{
  text-align:center;
  color:var(--muted);
  font-size:12px;
  margin-top:22px;
}
.bottom a{color:#cfb7ff;font-weight:800}
.error{
  min-height:18px;
  color:#ff8799;
  font-size:12px;
  margin-top:12px;
}
.success{color:var(--green)}
.account-list{
  display:grid;
  gap:10px;
  margin:22px 0;
}
.account-row{
  border:1px solid var(--line);
  border-radius:10px;
  padding:13px 14px;
  display:flex;
  justify-content:space-between;
  gap:15px;
}
.account-row span{
  color:var(--muted);
  font-size:12px;
}
.account-row b{
  font-size:12px;
  overflow-wrap:anywhere;
  text-align:right;
}
.section{
  border-top:1px solid var(--line);
  padding-top:24px;
  margin-top:24px;
}
.section h2{
  font-size:17px;
  margin:0 0 8px;
}
.small{
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
}
.actions{
  display:grid;
  gap:10px;
  margin-top:18px;
}


/* SINFUL_PASSWORD_RESET_V1 */

.auth-help-row{
  display:flex;
  justify-content:flex-end;
  margin:-2px 0 12px;
}

.auth-help-row a{
  font-size:13px;
  text-decoration:none;
}

.auth-help-row a:hover{
  text-decoration:underline;
}

.auth-success{
  margin-top:14px;
  font-size:13px;
  line-height:1.5;
}


/* ===== SINFUL_FORGOT_PASSWORD_UI_FIX_V1 ===== */

.auth-help-row{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;

  width:100% !important;

  margin:
    -2px
    0
    18px
    0 !important;

  padding:0 !important;
}

.auth-help-row a{
  display:inline-flex !important;
  align-items:center !important;

  margin:0 !important;
  padding:2px 0 !important;

  color:#a99fb5 !important;

  font-size:13px !important;
  font-weight:600 !important;
  line-height:1.35 !important;

  text-decoration:none !important;

  transition:
    color .16s ease,
    opacity .16s ease !important;
}

.auth-help-row a:hover{
  color:#d9c9ff !important;
  text-decoration:none !important;
}

.auth-help-row a:focus-visible{
  color:#e8ddff !important;
  outline:2px solid rgba(170,105,255,.65) !important;
  outline-offset:4px !important;
  border-radius:3px !important;
}

/*
 * Keep the recovery link visually separate
 * from the primary sign-in button.
 */
.auth-help-row + .primary{
  margin-top:0 !important;
}



/* SINFUL_PASSWORD_STRENGTH_AUTH_CSS_V1 */

.password-strength {
  margin: -2px 0 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.password-strength-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.password-strength-head span {
  opacity: .7;
}

.password-strength-head strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.password-strength-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.password-strength-bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  transition: width .18s ease;
}

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
}

.password-rules span {
  opacity: .55;
  font-size: 11px;
}

.password-rules span::before {
  content: "○ ";
}

.password-rules span.met {
  opacity: 1;
}

.password-rules span.met::before {
  content: "✓ ";
}

/* SINFUL_LOGIN_2FA_CSS_V1 */
.two-factor-panel[hidden],
#normal-login-extras[hidden] {
  display: none !important;
}

.two-factor-panel {
  margin-top: 8px;
}

.two-factor-panel h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.two-factor-panel .button {
  width: 100%;
  margin-top: 10px;
}

/* SINFUL_TRUST_DEVICE_STYLE_V1 */

#two-factor-form .trust-device-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: fit-content;
  margin: 20px 0 24px;
  cursor: pointer;
  user-select: none;
}

#two-factor-form .trust-device-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  display: grid;
  place-content: center;
  cursor: pointer;
}

#two-factor-form .trust-device-option input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 120ms ease;
}

#two-factor-form .trust-device-option input[type="checkbox"]:checked {
  background: linear-gradient(
    135deg,
    #7c3cff,
    #df3f91
  );
  border-color: transparent;
}

#two-factor-form .trust-device-option input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

#two-factor-form .trust-device-option input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(167,96,255,.65);
  outline-offset: 3px;
}

#two-factor-form .trust-device-option span {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(245,242,250,.88);
}


/* SINFUL_ACCOUNT_DATA_CONTROLS_STYLE_V1 */

.account-data-controls {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(127,127,127,.2);
}

.account-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.account-data-controls .notice {
  margin-top: 12px;
  margin-bottom: 12px;
}
