/* ===== Alap ===== */
:root{
  --bg: #1d1d1f;          /* háttér a mintához igazítva */
  --card-top: #2c2c2e;    /* kártya felső átmenet */
  --card: #1c1c1e;        /* kártya alsó átmenet */
  --text: #f2f2f2;
  --muted: #b8b1a6;

  --input-stroke: rgba(255,255,255,.25);
  --input-stroke-focus: rgba(255,255,255,.45);

  --shadow-outer: 0 40px 120px rgba(0,0,0,.6), 0 12px 24px rgba(0,0,0,.35);
  --radius: 24px;
}

/* sticky footer layout */
html, body { height: 100%; }
body{
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}
main{ flex: 1 0 auto; }
.login-footer{ flex-shrink: 0; }

/* Felső „Eclipse” */
.brand{
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
}

/* ===== Login kártya (iCloud-szerű) ===== */
.login-card{
  background: linear-gradient(to bottom, var(--card-top), var(--card));
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  margin-top: clamp(24px, 8vh, 72px);

  /* keret + belső highlight + külső árnyék */
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    var(--shadow-outer),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.25);
}

/* SZÉLESÍTETT PANEL nagy képernyőn */
.login-card--wide {
  max-width: 540px;    /* keskenyített panel, mint a mintán */
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1399.98px){
  .login-card--wide{ max-width: 1000px; }
}
@media (max-width: 1199.98px){
  .login-card--wide{ max-width: 920px; }
}

/* CÍM */
.login-title{
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  margin: 16px 0 14px;
  letter-spacing: .2px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* Dot-ring + logo */
.ring-wrap{
  position: relative;
  width: 150px;
  height: 150px;
}
.ring-svg{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}
.logo-slot{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.logo-slot::before{
  content:"";
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #ffffff0e;
  border: 1px solid #ffffff1c;
}

/* ===== KESKENYEBB INPUT-SÁV ===== */
.form-narrow{
  width: 100%;
  max-width: 720px;        /* << itt szűkítjük az e-mail/jelszó mezők sávját */
}
@media (min-width: 1400px){
  .form-narrow{ max-width: 680px; }  /* kicsit még elegánsabban keskeny a nagyon nagy kijelzőkön */
}
@media (max-width: 767.98px){
  .form-narrow{ max-width: 100%; }   /* mobilon teljes szélesség */
}

/* ===== Apple-szerű közös input doboz ===== */
.icloud-input {
  display: flex;
  align-items: center;
  background: #1c1c1e;
  border: 1px solid var(--input-stroke);
  border-radius: 12px;
  padding: 0 4px;
  transition: border-color .2s, box-shadow .2s;
}
.icloud-input:focus-within{
  border-color: var(--input-stroke-focus);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}
.icloud-input input{
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  padding: 12px 14px;
}
.icloud-input input::placeholder{ color: #9aa0a6; }

/* jobb oldali gomb/nyíl */
.icloud-input button{
  background: transparent;
  border: 1px solid transparent; /* hogy a magasság optikailag azonos legyen */
  color: #9aa0a6;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background .2s, color .2s, border-color .2s;
}
.icloud-input button:hover{
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}
.icloud-btn-primary{
  padding: 0 .95rem;
  width: auto; min-width: 110px;
  font-weight: 600;
  color: #111;
  background: #e5e5e7;
  border-color: #e5e5e7 !important;
  border-radius: 10px;
}
.icloud-btn-primary:hover{
  background: #f0f0f2;
  border-color: #f0f0f2 !important;
}

/* linkek */
.link-muted{
  color: var(--muted);
  text-decoration: none;
}
.link-muted:hover{ color: #fff; }

/* Lépés animációk */
.step{ display:none; }
.step.active{ display:block; animation: fadeIn .22s ease-out; }
@keyframes fadeIn{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ===== Footer (icloud-szerű) ===== */
.login-footer {
  background: #2f2f31;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
  color: #aeb2b8;
  font-size: 0.9rem;
  text-align: center;   /* <<< középre igazítás */
}
.footer-link{
  position: relative;
  color: #aeb2b8;
  text-decoration: none;
  padding: 0 12px;
  line-height: 1.4;
}
.footer-link:hover{ color:#d7dbe0; text-decoration: underline; }
.footer-links .footer-link + .footer-link{ padding-left: 18px; }
.footer-links .footer-link + .footer-link::before{
  content:"";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 14px;
  background: rgba(255,255,255,.18);
}
.footer-copy {
  color: #aeb2b8;
}
@media (max-width: 991.98px){
  .footer-links{ justify-content: center; gap: 0; }
}

/* ===== Email hibaszöveg kontraszt ===== */
#emailHelp {
  color: #ff7b88 !important; /* világos pirosas szín, jól látszik sötéten */
  font-size: 0.9rem;
}
