/* Login / 2FA oldalak — sötét, üveghatású kártya (a createapp login dizájnja alapján) */
:root {
  --primary-color: #2dd4bf;
  --secondary-color: #0d9488;
  --accent-color: #5eead4;
  --dark-bg: #03201d;
  --light-text: #e6fffa;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: var(--dark-bg);
  color: var(--light-text);
}

body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(13, 148, 136, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(45, 212, 191, 0.18) 0%, transparent 50%),
    var(--dark-bg);
  background-attachment: fixed;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 16px;
  perspective: 1000px;
}

.login-box {
  background: rgba(3, 32, 29, 0.85);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(45, 212, 191, 0.2);
  width: 100%;
  max-width: 420px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

@media (hover: hover) {
  .login-box:hover { transform: translateY(-5px) rotateX(5deg); }
}

.login-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, rgba(45, 212, 191, 0) 70%);
  animation: rotate 15s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .login-box::before { animation: none; }
  .login-box, .login-box button { transition: none; }
}

.logo-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  text-align: center;
}

.logo-title img {
  height: 80px;
  width: 80px;
  border-radius: 18px;
  filter: drop-shadow(0 0 10px rgba(94, 234, 212, 0.5));
}

.logo-title h2 {
  margin: 0;
  font-weight: 600;
  font-size: 26px;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.3);
}

.subtitle {
  margin: -6px 0 0;
  font-size: 14px;
  font-weight: 300;
  color: rgba(230, 255, 250, 0.7);
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 17px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border-radius: 8px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  background-color: rgba(3, 32, 29, 0.7);
  color: var(--light-text);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input::placeholder { color: rgba(230, 255, 250, 0.5); }

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
  background-color: rgba(3, 32, 29, 0.9);
}

/* Böngésző automatikus kitöltés: ne legyen sárga / fehér a mező */
.form-group input:-webkit-autofill {
  -webkit-text-fill-color: var(--light-text);
  -webkit-box-shadow: 0 0 0 1000px #06302b inset;
  caret-color: var(--light-text);
}

.code-input {
  text-align: center;
  font-size: 22px !important;
  letter-spacing: 4px;
}

.login-box button {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.4);
  position: relative;
  overflow: hidden;
}

.login-box button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.login-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.6);
}

.login-box button:hover::before { left: 100%; }

.alert {
  margin: 0 0 20px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  font-size: 14px;
}

.hint {
  margin: -10px 0 20px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: rgba(230, 255, 250, 0.8);
}
.hint b { color: var(--accent-color); font-weight: 600; }

.back-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* E-mailes 2FA: "Új kód küldése" — linknek látszó gomb */
.resend-form { margin: 14px 0 0; text-align: center; }
.login-box button.link-btn {
  width: auto;
  margin: 0;
  padding: 4px 8px;
  background: none;
  box-shadow: none;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 400;
}
.login-box button.link-btn::before { display: none; }
.login-box button.link-btn:hover { transform: none; box-shadow: none; text-decoration: underline; }

@media (max-width: 420px) {
  .login-box { padding: 30px 22px; }
  .logo-title img { height: 68px; width: 68px; }
}

.alert-ok { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.45); color: #a7f3d0; }

/* Nyelvválasztó a belépőoldal alján */
.login-container { position: relative; padding-bottom: 60px; }
.login-container .lang-picker {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px; color: rgba(230, 255, 250, 0.7); font-size: 14px;
}
.lang-picker select {
    font: inherit; color: inherit; background: transparent; border: 1px solid currentColor;
    border-radius: 6px; padding: 3px 6px; cursor: pointer;
}
.lang-picker option { color: #0f172a; }

/* Cég logója a Labelqod ikon helyett */
.logo-title img.brand-logo {
    width: auto; height: auto; max-width: 240px; max-height: 90px;
    background: #fff; padding: 8px 14px; border-radius: 14px;
    filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.35));
}
