/* =======================================
   ALAP VÁLTOZÓK
======================================= */
:root {
  --primary-color:#4a90e2;
  --primary-hover:#357ABD;
  --primary-gradient:linear-gradient(135deg,#4a90e2,#7bc6f9);

  --background-dark:#0f141b;
  --background-darker:#0b0f14;
  --container-bg:rgba(29,35,45,.75);
  --box-bg:rgba(30,36,46,.72);

  --text-light:#e6eef6;
  --text-lighter:#ffffff;
  --text-muted:#9da9b9;

  --accent-blue:#7bc6f9;
  --accent-green:#00e676;
  --accent-red:#ff5252;
  --accent-orange:#ffb74d;

  --border-radius:18px;
  --border-radius-sm:10px;

  --box-shadow:0 8px 34px rgba(0,0,0,.6);
  --blur-bg:blur(12px);
}

/* RESET */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html,body {
  font-size:16px;
  background:var(--background-darker);
  color:var(--text-light);
  font-family:'Segoe UI',Roboto,Arial,sans-serif;
  height:100%;
}
body {
  display:flex;
  flex-direction:column;
  min-height:100vh;
  padding:1rem;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* =======================================
   AUTH FORMOK
======================================= */
.auth-form,.register-box,.verify-box,.reset-box,.pay-box,.forgot-box {
  max-width:420px;
  margin:60px auto;
  padding:28px 24px;
  border-radius:var(--border-radius);
  background:var(--container-bg);
  box-shadow:var(--box-shadow);
  backdrop-filter:var(--blur-bg);
  text-align:center;
}

.auth-form h2,.register-box h2,.verify-box h2,
.reset-box h2,.pay-box h2,.forgot-box h2 {
  font-size:1.75rem;
  font-weight:800;
  margin-bottom:16px;
  color:var(--text-lighter);
}

/* =======================================
   INPUT-GROUP
======================================= */
.input-group {
  position: relative;
  margin-bottom: 14px;
}

.input-group input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #333;
  background: #1c1f26;
  color: #fff;
  font-size: 0.95rem;
  line-height: 48px;
  display: block;
}

.input-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* --- 1. MEGOLDÁS: ikon-box --- */
.input-group .icon-box {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.9;
}
.input-group .icon-box svg {
  width: 100%;
  height: 100%;
  fill: var(--text-muted);
}
.input-group .icon-box + input {
  padding-left: 46px !important;
}

/* --- 2. MEGOLDÁS: ::before --- */
.input-group.mail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("../img/mail.svg") no-repeat center/contain;
  opacity: 0.9;
  pointer-events: none;
}
.input-group.mail input {
  padding-left: 46px;
}

/* --- 3. MEGOLDÁS: background-image --- */
.input-group.bg-lock input {
  background-image: url("../img/lock.svg");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 20px 20px;
  padding-left: 46px;
}

/* =======================================
   BUTTONS
======================================= */
.auth-form button,.register-box button,.verify-box button,
.reset-box button,.pay-box button,.forgot-box button {
  width:100%;
  padding:12px;
  margin-top:6px;
  border:none;
  border-radius:var(--border-radius-sm);
  background:var(--primary-gradient);
  color:#fff;
  font-size:1rem;
  font-weight:600;
  cursor:pointer;
  transition:opacity .3s ease, transform .2s ease;
}
.auth-form button:hover { opacity:.9; transform:translateY(-2px); }

/* =======================================
   FORM LINKEK (globálisan mindenhol)
======================================= */
.form-links { 
  margin-top:16px; 
  text-align:center; 
}

.form-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 6px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  background: #2b2f3a;
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .3s ease, transform .2s ease;
}

.form-links a .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: none;
  border: none;
}

.form-links a .icon-box svg {
  width: 100%;
  height: 100%;
  fill: var(--text-light);
}

.form-links a:hover {
  background: var(--primary-gradient);
  color: #fff;
  transform: translateY(-2px);
}
.form-links a:hover .icon-box svg { fill:#fff; }

/* =======================================
   ERROR / SUCCESS BOX
======================================= */
.error-box {
  background:rgba(255,0,0,.08);
  color:var(--accent-red);
  padding:12px 14px;
  border-radius:10px;
  margin-bottom:15px;
  text-align:center;
  font-weight:700;
}
.success-box {
  background:rgba(0,255,0,.06);
  color:var(--accent-green);
  padding:12px 14px;
  border-radius:10px;
  margin-bottom:15px;
  text-align:center;
  font-weight:700;
}

/* =======================================
   GOMBOK (általános)
======================================= */
.btn {
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  border:none;
  background:var(--primary-gradient);
  color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.45);
  transition:all .18s ease;
  text-align:center;
}
.btn:hover { transform:translateY(-2px); }

/* =======================================
   RESPONSIVE
======================================= */
@media (max-width:480px) {
  body { padding:.6rem; }
  .auth-form {
    margin:20px;
    padding:18px;
    border-radius:12px;
  }
  .auth-form h2 {
    font-size:1.4rem;
    margin-bottom:14px;
  }
  .input-group .icon-box {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  .input-group.mail::before {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  .input-group.bg-lock input {
    background-position: 12px center;
    background-size: 18px 18px;
  }
  .input-group .icon-box + input,
  .input-group.mail input,
  .input-group.bg-lock input {
    padding-left: 42px;
  }
  .form-links a {
    font-size:.8rem;
    padding:8px 12px;
  }
  .form-links a .icon-box {
    width:16px;
    height:16px;
  }
}