/* css/auth.css – Apple-stílusú auth oldalak */
.auth-page {
  min-height: 100vh;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-box {
  width: 100%; max-width: 420px;
}
.auth-logo-wrap {
  text-align: center; margin-bottom: 32px;
}
.auth-logo {
  font-size: 22px; font-weight: 700;
  color: var(--text-h); text-decoration: none;
  letter-spacing: -0.02em;
}
.auth-logo span { color: var(--orange); }
.auth-logo-sub { font-size: 13px; color: var(--text-xs); margin-top: 4px; }

.auth-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--sh-lg);
}
.auth-card-title { font-size: 26px; font-weight: 700; color: var(--text-h); letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-card-sub   { font-size: 15px; color: var(--text-s); margin-bottom: 28px; }
.auth-title      { font-size: 26px; font-weight: 700; color: var(--text-h); letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-subtitle   { font-size: 15px; color: var(--text-s); margin-bottom: 6px; }
.auth-alt-link   { font-size: 14px; color: var(--text-s); margin-bottom: 24px; }
.auth-alt-link a { color: var(--orange); font-weight: 500; }
.auth-alt-link a:hover { text-decoration: underline; }

.auth-card-header { margin-bottom: 20px; }
.auth-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-bg); color: var(--orange-h);
  border: 1px solid var(--orange-border);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
}

/* Inputs */
.auth-card .form-input,
.auth-card .inp {
  background: var(--bg-2);
  border: 1.5px solid transparent;
  font-size: 15px; padding: 13px 16px;
}
.auth-card .form-input:focus,
.auth-card .inp:focus {
  background: var(--bg);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,99,0,0.10);
}
.auth-card .input-wrap .form-input,
.auth-card .inp-wrap .inp { padding-left: 44px; padding-right: 44px; }

/* Submit gomb */
.auth-submit {
  width: 100%; padding: 14px;
  background: var(--orange); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: inherit; margin-top: 8px;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
}
.auth-submit:hover {
  background: var(--orange-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,99,0,0.3);
}
.auth-submit:active { transform: translateY(0); }

/* Legacy auth button classes */
.btn-auth {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--fast);
}
.btn-auth-primary {
  background: var(--orange); color: #fff;
}
.btn-auth-primary:hover { background: var(--orange-h); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,99,0,0.3); text-decoration: none; color: #fff; }
.btn-auth-lg { font-size: 16px; padding: 14px 20px; }
.btn-auth-wa {
  background: var(--bg); color: var(--text-h);
  border: 1.5px solid var(--line-2);
}
.btn-auth-wa:hover { border-color: #25d366; background: var(--bg-2); text-decoration: none; color: var(--text-h); }
.btn-auth-wa svg { color: #25d366; }

/* Submit loading state */
.btn-loading { display: none; align-items: center; gap: 8px; justify-content: center; }

/* Divider */
.auth-or,
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-xs); font-size: 13px; margin: 20px 0;
}
.auth-or::before, .auth-or::after,
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line-2);
}

/* WhatsApp gomb */
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px;
  background: var(--bg); color: var(--text-h);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: all var(--fast);
}
.btn-whatsapp:hover { border-color: #25d366; color: var(--text-h); background: var(--bg-2); text-decoration: none; }
.btn-whatsapp-icon { color: #25d366; }

/* Footer link */
.auth-footer {
  text-align: center; font-size: 14px;
  color: var(--text-s); margin-top: 24px;
}
.auth-footer a { color: var(--orange); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* SSL note */
.login-ssl-note {
  text-align: center; font-size: 12px; color: var(--text-xs); margin-top: 14px;
}

/* Login meta row */
.login-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
.login-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-s); }
.login-remember-track {
  width: 34px; height: 20px; border-radius: 10px;
  background: var(--bg-3); display: flex; align-items: center;
  padding: 2px; transition: background var(--fast); flex-shrink: 0;
}
.login-remember.on .login-remember-track { background: var(--orange); }
.login-remember-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-sm); transition: transform var(--fast);
}
.login-remember.on .login-remember-thumb { transform: translateX(14px); }
.login-remember input { display: none; }
.login-forgot {
  font-size: 13px; color: var(--cyan); background: none; border: none;
  cursor: pointer; padding: 0; font-family: inherit; transition: color var(--fast);
}
.login-forgot:hover { text-decoration: underline; color: var(--cyan-h); }

/* Password strength */
.pw-strength-bar { height: 3px; background: var(--bg-3); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.pw-strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.pw-strength-label { font-size: 12px; margin-top: 4px; color: var(--text-xs); }

/* Two column row */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Shake animation */
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
.shake { animation: shake .4s ease; }

/* Legacy two-panel auth layout (kept for compatibility) */
.auth-wrap       { display: flex; min-height: 100vh; }
.auth-left       { width: 42%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: var(--bg-dark); padding: 3rem 3.5rem; position: relative; overflow: hidden; }
.auth-right      { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg-2); overflow-y: auto; }
.auth-topbar     { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.auth-card-wrap  { width: 100%; max-width: 440px; }
.auth-card-login { background: var(--bg); }
.auth-lang-toggle { display: flex; gap: 4px; }
.auth-lang-toggle a {
  font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 6px;
  color: var(--text-s); text-decoration: none; border: 1px solid var(--line-2);
  transition: all var(--fast);
}
.auth-lang-toggle a.active,
.auth-lang-toggle a:hover { background: var(--orange-bg); color: var(--orange-h); border-color: var(--orange-border); text-decoration: none; }

@media (max-width: 768px) {
  .auth-left { display: none; }
  .auth-right { padding: 1.5rem; background: var(--bg-2); }
  .auth-card { padding: 28px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
