/* ════ AUTH PAGE ════ */

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

/* ════ BRAND PANEL (left) ════ */
.auth-brand {
  background: var(--navy, #0B1527);
  display: flex; flex-direction: column;
  padding: 32px 40px 40px;
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.auth-brand::after {
  content: ''; position: absolute;
  bottom: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,77,0,.18) 0%, transparent 65%);
  pointer-events: none;
}

.brand-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5);
  text-decoration: none; margin-bottom: 40px; width: fit-content;
  transition: color .15s; position: relative; z-index: 1;
}
.brand-back:hover { color: rgba(255,255,255,.85); }
.brand-back svg { width: 15px; height: 15px; }

.brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; position: relative; z-index: 1; }
.brand-logo-wm { display: flex; align-items: baseline; }
.brand-lw-a   { font-size: 18px; font-weight: 400; letter-spacing: -.025em; color: #fff; }
.brand-lw-b   { font-size: 18px; font-weight: 800; letter-spacing: -.04em;  color: #fff; }
.brand-lw-tld { font-size: 18px; font-weight: 800; letter-spacing: -.04em;  color: var(--orange); }

.brand-body { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.brand-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.brand-title { font-size: 32px; font-weight: 900; letter-spacing: -.04em; line-height: 1.15; color: #fff; margin-bottom: 12px; }
.brand-title em { font-style: normal; color: var(--orange); }
.brand-sub { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.65; margin-bottom: 36px; }

.brand-benefits { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.brand-benefit { display: flex; align-items: center; gap: 12px; }
.bb-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bb-icon svg { width: 17px; height: 17px; }
.bb-text { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.4; }
.bb-text strong { color: #fff; font-weight: 700; }

.brand-testi { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; position: relative; z-index: 1; }
.bt-quote { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.6; font-style: italic; margin-bottom: 14px; }
.bt-quote::before { content: '"'; font-size: 28px; color: var(--orange); font-style: normal; line-height: 0; vertical-align: -.5em; margin-right: 3px; }
.bt-author { display: flex; align-items: center; gap: 10px; }
.bt-avatar { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,#FF6B2B,#FF3200); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #fff; flex-shrink: 0; }
.bt-name    { font-size: 13px; font-weight: 700; color: #fff; }
.bt-company { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 1px; }
.bt-stars   { color: #F59E0B; font-size: 11px; margin-top: 2px; }

/* ════ FORM PANEL (right) ════ */
.auth-form-panel {
  background: var(--surface);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 28px; min-height: 100vh;
  overflow-y: auto;
}

.auth-card { width: 100%; max-width: 420px; }

/* Header */
.auth-header { margin-bottom: 28px; }
.auth-title { font-size: 26px; font-weight: 900; letter-spacing: -.04em; margin-bottom: 6px; transition: all .2s; }
.auth-subtitle { font-size: 14px; color: var(--gray); line-height: 1.5; }
.auth-subtitle a { color: var(--orange); text-decoration: none; font-weight: 600; }
.auth-subtitle a:hover { text-decoration: underline; }

/* Error / success messages */
.auth-error {
  display: flex; align-items: center; gap: 8px;
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; color: #DC2626;
}
.auth-success-msg {
  display: flex; align-items: center; gap: 8px;
  background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; color: #059669;
}

/* Tabs */
.auth-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 28px; }
.auth-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 14px; font-weight: 700; border-radius: 9px;
  cursor: pointer; transition: all .2s; color: var(--gray-light);
  border: none; background: transparent; font-family: inherit;
}
.auth-tab.active { background: var(--surface); color: var(--dark); box-shadow: 0 1px 6px rgba(0,0,0,.1); }

/* OAuth buttons */
.oauth-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.oauth-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 11px;
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--dark);
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.oauth-btn:hover { border-color: #D1D5DB; background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.oauth-btn:active { transform: scale(.99); }
.oauth-btn img, .oauth-btn svg { flex-shrink: 0; }

/* Divider */
.or-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.or-divider span { font-size: 12px; color: var(--gray-light); font-weight: 500; white-space: nowrap; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--mid); }
.form-label-row { display: flex; align-items: center; justify-content: space-between; }
.form-forgot { font-size: 12px; font-weight: 600; color: var(--orange); text-decoration: none; }
.form-forgot:hover { text-decoration: underline; }

/* Input wrap */
.input-wrap { position: relative; }
.input-wrap .input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gray-light); pointer-events: none; }
.input-wrap .input-icon svg { width: 16px; height: 16px; display: block; }
.form-input {
  width: 100%; padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--dark);
  background: var(--surface); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,77,0,.1); }
.form-input.error { border-color: #DC2626; background: #FEF2F2; }
.form-input.success { border-color: #059669; }
.form-input.no-icon { padding-left: 14px; }

/* Password toggle */
.input-wrap .pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray-light);
  padding: 2px; display: flex; align-items: center; transition: color .15s;
}
.pw-toggle:hover { color: var(--dark); }
.pw-toggle svg { width: 17px; height: 17px; }

/* Password strength */
.pw-strength { margin-top: 6px; display: none; }
.pw-strength.visible { display: block; }
.pw-strength-bar { height: 3px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.pw-strength-fill { height: 100%; border-radius: 4px; transition: width .3s, background .3s; width: 0; }
.pw-strength-label { font-size: 11px; font-weight: 600; }

/* Error hint */
.field-error { font-size: 12px; color: #DC2626; display: none; align-items: center; gap: 4px; }
.field-error.visible { display: flex; }
.field-error svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Remember me */
.remember-row { display: flex; align-items: center; justify-content: space-between; }
.custom-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.custom-check input { display: none; }
.check-box { width: 17px; height: 17px; border: 2px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.custom-check input:checked + .check-box { background: var(--orange); border-color: var(--orange); }
.custom-check input:checked + .check-box::after { content: ''; width: 4px; height: 8px; border: 2px solid white; border-top: none; border-left: none; transform: rotate(45deg) translate(-1px,-1px); display: block; }
.check-label { font-size: 13px; color: var(--mid); }

/* Submit button */
.submit-btn {
  width: 100%; padding: 14px; border: none; border-radius: 11px;
  font-size: 15px; font-weight: 800; color: #fff;
  background: var(--orange); cursor: pointer; font-family: inherit;
  transition: all .18s; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,77,0,.35); }
.submit-btn:active { transform: none; box-shadow: none; }
.submit-btn svg { width: 16px; height: 16px; }

/* Bottom note */
.auth-bottom { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray); }
.auth-bottom a { color: var(--orange); font-weight: 600; text-decoration: none; }
.auth-bottom a:hover { text-decoration: underline; }

.terms-note { font-size: 11px; color: var(--gray-light); text-align: center; line-height: 1.6; margin-top: 12px; }
.terms-note a { color: var(--gray); text-decoration: underline; }

/* Mobile navbar wrapper */
.auth-mobile-nav {
  display: none;
}

/* ════ RWD ════ */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-nav { display: block; }
  .auth-form-panel { justify-content: flex-start; padding: 32px 24px 60px; min-height: auto; }
  .auth-card { max-width: 100%; }
}
@media (max-width: 479px) {
  .auth-form-panel { padding: 24px 16px 48px; }
  .auth-title { font-size: 22px; }
}
