/* ============================================
   SZERVISOFT – LOGIN PAGE STYLES
   ============================================ */

@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:         #1a1a1a;
  --bg2:        #222222;
  --bg3:        #2a2a2a;
  --surface:    #2f2f2f;
  --border:     #3a3a3a;
  --orange:     #f07621;
  --orange-dk:  #c95e10;
  --orange-lt:  #ffa04a;
  --steel:      #8fa0b0;
  --text:       #e8e0d5;
  --text-muted: #8a8a8a;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.45);
}

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

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

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;
}

/* ---------- BACKGROUND ---------- */

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

.login-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(240,118,33,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(143,160,176,0.05) 0%, transparent 60%);
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,118,33,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,118,33,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- HEADER ---------- */

.login-header {
  position: relative;
  z-index: 10;
  padding: 20px 5%;
  border-bottom: 1px solid var(--border);
  background: rgba(26,26,26,0.9);
  backdrop-filter: blur(10px);
}

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

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

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

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

/* ---------- MAIN LAYOUT ---------- */

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

/* ---------- LOGIN CARD ---------- */

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}

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

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

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

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

/* ---------- ALERTS ---------- */

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.login-alert--error {
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.3);
  color: #ff7070;
}

.login-alert--success {
  background: rgba(240,118,33,0.10);
  border: 1px solid rgba(240,118,33,0.3);
  color: var(--orange-lt);
}

/* ---------- FORM ---------- */

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

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

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.input-icon {
  position: absolute;
  left: 13px;
  font-size: 15px;
  pointer-events: none;
  opacity: 0.6;
  line-height: 1;
}

.input-wrapper input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 44px;
  font-size: 15px;
  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.12);
}

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

/* Error state */
.form-group.has-error .input-wrapper input {
  border-color: #ff5555;
  box-shadow: 0 0 0 3px rgba(255, 85, 85, 0.1);
}

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

/* Password toggle */
.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.toggle-password:hover { opacity: 0.8; }

/* ---------- OPTIONS ROW ---------- */

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 17px;
  height: 17px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--orange);
  border-color: var(--orange);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  font-size: 11px;
  color: var(--white);
  font-weight: 700;
}

.forgot-link {
  font-size: 14px;
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.forgot-link:hover { color: var(--orange-lt); }

/* ---------- BUTTON ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,118,33,0.4);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
  position: relative;
}

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

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

/* ---------- CARD FOOTER ---------- */

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

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

.login-footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.login-footer a:hover { color: var(--orange-lt); }

/* ---------- INFO PANEL ---------- */

.login-info {
  flex: 1;
  max-width: 480px;
  animation: fadeUp 0.5s 0.15s ease both;
}

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

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,118,33,0.12);
  border: 1px solid rgba(240,118,33,0.25);
  color: var(--orange-lt);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.info-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

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

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

.info-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

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

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

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

/* ---------- PAGE FOOTER ---------- */

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

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

.login-page-footer a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s;
}

.login-page-footer a:hover { color: var(--orange-lt); }

/* ---------- ANIMATIONS ---------- */

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

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

/* ---------- RESPONSIVE ---------- */

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

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

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

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

  .login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
