/* AUTH PAGES */
.auth-body { background: var(--gray-100); min-height: 100vh; display: flex; align-items: stretch; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; width: 100%; }

.auth-left {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1c1c2e 60%, #0f1117 100%);
  padding: 48px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-logo img { height: 44px; filter: brightness(1.1); margin-bottom: 48px; }
.auth-tagline h1 { font-size: 36px; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 14px; }
.auth-tagline p { font-size: 15px; color: var(--gray-400); line-height: 1.7; }
.auth-features { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.af { display: flex; align-items: center; gap: 12px; color: var(--gray-300); font-size: 14px; }
.af i { width: 36px; height: 36px; background: rgba(62,142,99,.15); border: 1px solid rgba(62,142,99,.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 14px; flex-shrink: 0; }
.auth-bg-decoration { position: absolute; bottom: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(var(--green-glow), transparent 70%); pointer-events: none; }

.auth-right { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; background: var(--gray-50); }
.auth-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: 36px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--gray-100); border-radius: var(--r); padding: 4px; margin-bottom: 24px; }
.auth-tab { padding: 9px; border: none; background: none; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--gray-500); cursor: pointer; transition: all .2s; }
.auth-tab.on { background: white; color: var(--gray-900); box-shadow: var(--shadow-sm); }

.auth-welcome h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.auth-welcome p { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.auth-welcome code { background: var(--green-light); color: var(--green-dark); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 12px; }

.form-group label { font-size: 12px; font-weight: 600; color: var(--gray-600); display: block; margin-bottom: 5px; }
.inp-wrap { position: relative; }
.inp-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 13px; pointer-events: none; }
.inp-wrap input { width: 100%; padding: 11px 40px 11px 36px; border: 1.5px solid var(--gray-200); border-radius: var(--r-sm); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; background: var(--gray-50); }
.inp-wrap input:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 3px var(--green-glow); }
.inp-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 13px; }
.inp-eye:hover { color: var(--gray-700); }

.auth-row { display: flex; justify-content: space-between; align-items: center; }
.check-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-600); cursor: pointer; }
.check-label input { accent-color: var(--green); }
.auth-link { font-size: 13px; color: var(--green); font-weight: 600; }
.auth-link:hover { color: var(--green-dark); text-decoration: underline; }

.auth-submit {
  width: 100%; margin-top: 20px; padding: 13px;
  background: var(--green); color: white; border: none;
  border-radius: var(--r); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.auth-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }

.auth-error {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--r-sm); color: var(--red);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gray-300); font-size: 12px; }
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:var(--gray-200); }

.auth-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn { padding: 10px; border: 1.5px solid var(--gray-200); border-radius: var(--r-sm); background: white; font-size: 13px; font-weight: 600; color: var(--gray-700); display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: all .2s; }
.social-btn:hover { border-color: var(--green); color: var(--green); }

@media(max-width:768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 24px 16px; }
}

/* ── Security additions ── */
.auth-submit:disabled{opacity:.6;cursor:not-allowed;transform:none;}
.auth-lockout{display:flex;align-items:center;gap:10px;padding:10px 14px;margin-bottom:16px;
  background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);border-radius:var(--r-sm);
  color:#ef4444;font-size:13px;font-weight:500;}
.pw-hint{font-size:11px;font-weight:400;color:var(--gray-400);margin-left:4px;}
.pw-bar{height:4px;background:var(--gray-200);border-radius:100px;margin-top:7px;overflow:hidden;}
.pw-fill{height:100%;width:0;border-radius:100px;transition:width .35s ease,background .35s ease;}
.pw-label{font-size:11px;margin-top:4px;font-weight:600;min-height:14px;transition:color .3s;}
