/* JackGenerate — auth pages (login / signup / forgot password) */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

/* Left: form */
.auth__form-side { display: flex; flex-direction: column; padding: 36px 48px; position: relative; z-index: 1; }
.auth__topbar { display: flex; justify-content: space-between; align-items: center; }
.auth__back { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.auth__back:hover { color: var(--text); }
.auth__back svg { width: 16px; height: 16px; }

.auth__form-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 400px; width: 100%; margin: 0 auto; padding: 40px 0; }
.auth__form-inner h1 { font-size: 36px; letter-spacing: -0.03em; }
.auth__sub { color: var(--text-2); margin: 12px 0 32px; font-size: 15.5px; }
.auth__sub a { color: var(--accent); font-weight: 600; }

.auth__alt { text-align: center; margin-top: 28px; font-size: 14.5px; color: var(--text-2); }
.auth__alt a { color: var(--accent); font-weight: 600; }

.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-row a { font-size: 13px; color: var(--text-2); font-weight: 500; transition: color .2s; }
.label-row a:hover { color: var(--accent); }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--text-3); }
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg { width: 19px; height: 19px; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.is-on .eye-on { display: none; }
.pw-toggle.is-on .eye-off { display: block; }

/* password strength */
.pw-meter { display: flex; gap: 5px; margin-top: 10px; }
.pw-meter span { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); transition: background .3s; }
.pw-hint { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }

/* Right: visual */
.auth__visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.auth__visual-bg { position: absolute; inset: 0; z-index: 0; }
.auth__visual::after { content:''; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(8,8,10,0.1) 0%, rgba(8,8,10,0.55) 100%); }
.auth__visual > * { position: relative; z-index: 2; }
/* keep the full-bleed backdrop absolutely positioned behind the overlay
   (the `> *` rule above otherwise un-absolutes it, collapsing it to 0 height) */
.auth__visual > .auth__visual-bg { position: absolute; inset: 0; z-index: 0; }
.auth__quote { max-width: 30ch; }
.auth__quote p { font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.auth__quote .by { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,0.8); }
.auth__visual-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.auth__visual-tags .pill { background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); border-color: rgba(255,255,255,0.18); color: #fff; }

.auth__success { display:none; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.auth__success .check { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); display:grid; place-items:center; }
.auth__success .check svg { width: 30px; height: 30px; color: var(--on-accent); }
.auth__success h2 { font-size: 26px; }
.auth__success p { color: var(--text-2); max-width: 34ch; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
  .auth__form-side { padding: 28px 24px; min-height: 100vh; }
}
