/* ============================================
   SZERVISOFT ADMIN – LOGIN PAGE STYLES
   sadmin.szervisoft.eu
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Lato:wght@300;400;700&display=swap');

:root {
  --bg:         #111111;
  --bg2:        #181818;
  --bg3:        #202020;
  --surface:    #252525;
  --surface2:   #2e2e2e;
  --border:     #333333;
  --border-hl:  #444444;
  --orange:     #f07621;
  --orange-dk:  #c95e10;
  --orange-lt:  #ffa04a;
  --steel:      #8fa0b0;
  --text:       #e8e0d5;
  --text-muted: #7a7a7a;
  --white:      #ffffff;
  --danger:     #e84040;
  --danger-bg:  rgba(232, 64, 64, 0.10);
  --danger-br:  rgba(232, 64, 64, 0.28);
  --warn:       #e8a820;
  --warn-bg:    rgba(232, 168, 32, 0.10);
  --warn-br:    rgba(232, 168, 32, 0.28);
  --green:      #28c840;
  --radius:     10px;
  --radius-lg:  14px;
  --shadow:     0 8px 40px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─── HÁTTÉR ─────────────────────────────── */

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.login-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 75% 35%, rgba(240,118,33,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 45% at 15% 75%, rgba(143,160,176,0.04) 0%, transparent 60%);
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,118,33,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,118,33,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
}

/* ─── HEADER ─────────────────────────────── */

.login-header {
  position: relative;
  z-index: 10;
  padding: 16px 5%;
  border-bottom: 1px solid var(--border);
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 14px rgba(240,118,33,0.35);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: 0.3px;
}

.nav-logo-text span { color: var(--orange); }

.nav-logo-text em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-left: 6px;
  border-left: 1px solid var(--border-hl);
  padding-left: 8px;
}

.header-domain {
  font-size: 12px;
  font-family: 'Lato', monospace;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* ─── MAIN LAYOUT ────────────────────────── */

.login-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  padding: 48px 5%;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* ─── LOGIN CARD ─────────────────────────── */

.login-card-wrap {
  width: 100%;
  max-width: 440px;
  flex-shrink: 0;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 38px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card-top {
  margin-bottom: 28px;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}

.login-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.login-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ─── ALERTEK ────────────────────────────── */

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 10px;
  border-left: 3px solid;
  font-size: 13.5px;
  margin-bottom: 22px;
  animation: alertIn 0.3s ease both;
}

@keyframes alertIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.login-alert--error {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.login-alert--warn {
  background: var(--warn-bg);
  border-color: var(--warn);
}

.alert-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.login-alert--error .alert-icon { color: var(--danger); }
.login-alert--warn  .alert-icon { color: var(--warn); }

.login-alert div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-alert strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.login-alert--error strong { color: #f08080; }
.login-alert--warn  strong { color: #e8c060; }

.login-alert span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.lockout-timer {
  margin-top: 4px;
  font-size: 12px;
  color: var(--danger) !important;
}

/* ─── FORM ───────────────────────────────── */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 13px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0.55;
  line-height: 1;
  user-select: none;
}

.input-wrapper input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 44px;
  font-size: 14.5px;
  font-family: 'Lato', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,118,33,0.14);
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Error állapot */
.form-group.has-error .input-wrapper input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(232,64,64,0.12);
}

.field-error {
  font-size: 12px;
  color: #f08080;
  min-height: 16px;
  display: block;
}

/* Jelszó toggle */
.toggle-password {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.toggle-password:hover { color: var(--orange); }

/* ─── GOMB ───────────────────────────────── */

.btn-login {
  width: 100%;
  margin-top: 6px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 13px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(240,118,33,0.32);
  position: relative;
}

.btn-login:hover:not(:disabled) {
  background: var(--orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,118,33,0.45);
}

.btn-login:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-arrow {
  font-size: 20px;
  transition: transform 0.2s;
}

.btn-login:hover .btn-arrow { transform: translateX(4px); }

/* Loader spinner */
.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.btn-loading .btn-text { opacity: 0.6; }
.btn-loading .btn-arrow { display: none; }
.btn-loading .btn-loader { display: inline-block; }

/* ─── KÁRTYA LÁBLÉC ──────────────────────── */

.login-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(40,200,64,0.7);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ─── INFO PANEL ─────────────────────────── */

.login-info {
  flex: 1;
  max-width: 500px;
  animation: fadeUp 0.45s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-info-content { padding: 8px 0; }

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40,200,64,0.08);
  border: 1px solid rgba(40,200,64,0.22);
  color: #60d880;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 26px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(40,200,64,0.8);
  animation: pulse 2s ease-in-out infinite;
}

.info-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.info-title .accent { color: var(--orange); }

.info-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
  line-height: 1.7;
}

/* Feature kártyák */
.info-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.info-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px 18px;
  transition: border-color 0.25s, transform 0.25s;
}

.info-feature:hover {
  border-color: rgba(240,118,33,0.30);
  transform: translateX(5px);
}

.info-feature-icon {
  font-size: 20px;
  width: 42px;
  height: 42px;
  background: rgba(240,118,33,0.09);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-feature strong {
  display: block;
  font-size: 14px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 2px;
}

.info-feature span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Biztonsági tagek */
.info-security {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.security-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}

.security-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.security-tags span {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-lt);
  background: rgba(240,118,33,0.09);
  border: 1px solid rgba(240,118,33,0.22);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── PAGE FOOTER ────────────────────────── */

.login-page-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 5%;
  border-top: 1px solid var(--border);
  background: rgba(17,17,17,0.85);
}

.login-page-footer p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ─── ANIMÁCIÓK ──────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── RESZPONZÍV ─────────────────────────── */

@media (max-width: 960px) {
  .login-info { display: none; }

  .login-main {
    justify-content: center;
    padding: 32px 5%;
  }

  .login-card-wrap {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 22px;
    border-radius: 14px;
  }

  .header-domain { display: none; }
}
