/* Sign in and Sign up: the same layout as before (logo bar, the aurora picture with its text on the left, the form on
   the right; the picture hides on narrow screens), in the dashboard's colours and fonts. sign-in.js and sign-up.v2.js
   are unchanged: they colour a field's border inline (white = fine, red = wrong), which the last rules below map to
   this look. */
@font-face { font-family: 'YCP UI'; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'YCP UI'; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'YCP UI'; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'YCP UI'; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700.woff2) format('woff2'); }

:root { --bg: #11141A; --surface: #151922; --line-2: #2C3345; --text: #ECEEF4; --text-2: #C4C9D6; --muted: #8A92A5; --muted-2: #6B7386;
  --link: #A9B8FF; --grad: linear-gradient(135deg, #9B7BFF 0%, #5E7BFF 55%, #3A8DF0 100%); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'YCP UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

header { height: 64px; display: flex; align-items: center; padding: 0 28px; background: #0B0E12; border-bottom: 1px solid #1B2030; }
header a { display: flex; }
main { display: flex; min-height: calc(100% - 64px); }

/* The picture */
.left { position: relative; flex: 0 0 45%; max-width: 45%; overflow: hidden; background: #000; }
.left picture, .left img { display: block; width: 100%; height: 100%; object-fit: cover; }
.left::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 14, 18, .72) 0%, rgba(11, 14, 18, 0) 34%, rgba(11, 14, 18, 0) 62%, rgba(11, 14, 18, .8) 100%),
              linear-gradient(90deg, rgba(17, 20, 26, 0) 70%, rgba(17, 20, 26, .9) 100%); }
.text-container { position: absolute; z-index: 1; top: 56px; left: 48px; right: 48px; }
.text-container h1 { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.text-container h2 { margin-top: 10px; font-size: 17px; font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.ticks { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 44px; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.ticks svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #3DD68C; background: rgba(61, 214, 140, .18); }

/* The form */
.right { position: relative; flex: 1; display: flex; align-items: center; padding: 48px 72px; overflow: hidden; }
.right::before { content: ""; position: absolute; right: -180px; top: -200px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(155, 123, 255, .16), transparent); }
.sign-up-container { position: relative; width: 100%; max-width: 380px; }
.title { font-size: 34px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.text { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
#subtitle { margin: 8px 0 28px; }
.mailpass-inputs-container { display: flex; flex-direction: column; gap: 12px; }

.input-container { position: relative; width: 100%; }
.input-container input { width: 100%; height: 56px; padding: 20px 16px 6px; border-radius: 13px; border: 1px solid var(--line-2); background: #0D1016;
  color: var(--text); font-family: inherit; font-size: 15.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
#password-input { padding-right: 50px; }
.input-container label { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 15px; color: var(--muted); transition: .15s ease all; }
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label { top: 9px; transform: none; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.input-container input:focus { box-shadow: 0 0 0 3px rgba(107, 107, 255, .2); }
.toggle-visibility { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; }
.toggle-visibility:hover { background: rgba(255, 255, 255, .05); }
.toggle-visibility img { width: 20px; height: 20px; filter: invert(1); opacity: .6; }

.primary-button { width: 100%; height: 52px; margin-top: 22px; border: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #fff; font-size: 15.5px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 26px rgba(94, 123, 255, .32); transition: filter .15s, transform .1s; }
.primary-button:hover { filter: brightness(1.08); }
.primary-button:active { transform: translateY(1px); }
.primary-button:focus-visible, .input-container input:focus-visible { outline: 2px solid #7E7BFF; outline-offset: 2px; }
.switch { margin-top: 22px; text-align: center; }
.switch a, .terms a, .otp-links a { color: var(--link); font-weight: 500; }
.switch a:hover, .terms a:hover, .otp-links a:hover { text-decoration: underline; }

/* The code step */
.otp-container { display: none; }
#goback { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 14px; font-weight: 500; color: var(--muted); }
#goback:hover { color: var(--text); }
#goback p { margin: 0; }
#recovery-input-container { display: none; }
#otp-input { font-size: 20px; font-weight: 600; letter-spacing: .3em; }
.otp-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13.5px; }
.otp-links a { cursor: pointer; }
.otp-links a.disabled { color: var(--muted-2); text-decoration: none; cursor: default; }
.terms { margin-top: 16px; font-size: 13.5px; }

/* The scripts' inline borders: white means fine, red means wrong. */
.input-container input { border: 1px solid var(--line-2) !important; }
.input-container input:focus { border-color: #6B6BFF !important; }
.input-container input[style*="red"] { border-color: rgba(255, 122, 122, .75) !important; box-shadow: 0 0 0 3px rgba(255, 122, 122, .14); }

@media (max-width: 1004px) {
  .left { display: none; }
  header { justify-content: center; padding: 0 16px; }
  .right { justify-content: center; align-items: flex-start; padding: 64px 20px 48px; }
  .right::before { right: -260px; top: -260px; }
  .sign-up-container { text-align: left; }
  .title { font-size: 30px; text-align: center; }
  #subtitle { text-align: center; margin-bottom: 24px; }
  .switch { text-align: center; }
}
