/* Auth page styles — polished, glassy, deep 3D portal */
:root {
  --bg: #050505;
  --panel: #0d1119;
  --panel-soft: #121827;
  --muted: #8da2be;
  --text: #e9f5ff;
  --accent: #00d0ff;
  --accent-strong: #4dd8ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

/* Sređen reset za sprečavanje horizontalnog skrola i zumiranja */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(800px 500px at 8% 0%, rgba(22, 217, 255, .14), transparent 60%),
              radial-gradient(620px 440px at 100% 100%, rgba(9, 87, 157, .16), transparent 65%),
              #030507;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
}

body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: linear-gradient(rgba(125, 231, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(125, 231, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(#000, transparent 80%);
}

button, input, select, textarea {
  font: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.auth-wrap {
  position: relative;
  width: 100%;
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 25px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  grid-template-rows: auto 1fr auto;
  gap: 30px;
  align-items: center;
  box-sizing: border-box;
}

.auth-nav {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 19px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.logo {
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 4px;
}

.logo .dot { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: rgba(233, 245, 255, 0.76);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-link:hover { color: #fff; }

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(8, 15, 21, .72);
}

.lang-btn {
  min-width: 36px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.active {
  background: rgba(22, 217, 255, .18);
  color: var(--accent);
}

.auth-hero {
  display: block;
  padding: 24px 2vw 20px 2vw;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(22, 217, 255, .24);
  background: rgba(22, 217, 255, .07);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.auth-hero h1 {
  max-width: 640px;
  font-size: clamp(32px, 5.2vw, 70px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0;
  word-break: break-word;
}

.auth-hero p {
  max-width: 520px;
  margin: 22px 0 28px;
  color: #a8b7c6;
  font-size: 15px;
  line-height: 1.75;
}

.hero-features {
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-features div {
  min-height: 126px;
  padding: 17px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 217, 255, .075), rgba(255, 255, 255, .015));
}

.hero-features strong {
  display: block;
  color: #eafdff;
  font-size: 12px;
  line-height: 1.35;
}

.hero-features span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Fiksiran Uptime / Hero Stats Prikaz */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  max-width: 560px;
}

.hero-stats div {
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(22, 217, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hero-stats div:hover {
  border-color: rgba(22, 217, 255, 0.35);
  background: rgba(22, 217, 255, 0.04);
}

.hero-stats span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero-stats small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-scene {
  width: 100%;
  max-width: 450px;
  justify-self: end;
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 32px;
  border: 1px solid rgba(22, 217, 255, .24);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(17, 32, 42, .92), rgba(5, 9, 13, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px rgba(220, 250, 255, .08);
}

.auth-card::before {
  content: 'SECURE ACCESS';
  position: absolute;
  top: 15px;
  right: 19px;
  color: rgba(22, 217, 255, .62);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.25px;
}

.tabs {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(122, 230, 255, .14);
  border-radius: 12px;
  background: #05080c;
}

.tab {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, rgba(22, 217, 255, .2), rgba(22, 217, 255, .07));
  color: #dcfaff;
}

.tab-content { padding-top: 12px; }

label {
  display: block;
  margin-top: 15px;
  color: #a9bac8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .55px;
}

input, textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 11px;
  border: 1px solid rgba(125, 226, 255, .16);
  background: rgba(0, 0, 0, .3);
  color: #f2f9ff;
  font-size: 13px;
}

input:hover, input:focus, textarea:hover, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 217, 255, .09);
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 17px;
  cursor: pointer;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.privacy-consent span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.actions { margin-top: 24px; }

.btn {
  width: 100%;
  padding: 15px 18px;
  border-radius: 11px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #18d8ff, #8ceeff);
  color: #06101d;
  box-shadow: 0 15px 28px rgba(22, 217, 255, .18);
}

.auth-foot {
  grid-column: 1 / -1;
  padding: 6px 0 0;
  color: #667687;
  font-size: 10px;
  letter-spacing: .4px;
  text-align: center;
}

.auth-foot a, .privacy-consent a {
  color: var(--accent);
  text-underline-offset: 3px;
}

/* Responsive prilagođavanja za mobilne uređaje */
@media (max-width: 820px) {
  .auth-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }

  .auth-nav {
    width: 100%;
    padding-bottom: 12px;
  }

  .site-nav { display: none; }

  .auth-hero {
    padding: 0;
    width: 100%;
  }

  .auth-hero h1 {
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: -1px;
  }

  .auth-hero p {
    margin: 12px 0 16px;
    font-size: 13px;
  }

  .hero-features { display: none; }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .card-scene {
    width: 100%;
    max-width: 100%;
  }

  .auth-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .auth-foot {
    width: 100%;
    padding-bottom: 12px;
    margin-top: auto;
  }
}

@media (max-width: 420px) {
  .auth-wrap {
    padding: 12px;
  }
  
  .auth-card {
    padding: 18px 14px;
  }
}