:root {
  --gold: #d4922c;
  --gold-light: #e8b24e;
  --gold-dark: #b36c13;

  --ink: #25231f;
  --ink-soft: #47433e;
  --muted: #77736d;
  --paper: #faf9f6;
  --white: #ffffff;
  --border: rgba(39, 34, 28, 0.12);

  --serif: "Playfair Display", serif;
  --sans: "DM Sans", sans-serif;

  --shadow:
    0 24px 70px rgba(42, 34, 25, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 9% 12%,
      rgba(212, 146, 44, 0.05),
      transparent 25%
    ),
    #f8f7f4;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}


/* HEADER */

.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 7px 28px rgba(36, 30, 23, 0.04);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1550px);
  min-height: 84px;
  margin: 0 auto;
  gap: 35px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: flex;
  align-items: stretch;
  gap: 3px;
  width: 31px;
  height: 42px;
  padding: 4px;
  border: 1px solid rgba(212, 146, 44, 0.5);
}

.brand-mark span {
  flex: 1;
  background:
    linear-gradient(
      180deg,
      #f0c36f 0%,
      var(--gold-dark) 100%
    );
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.09em;
}

.brand-copy em {
  color: var(--gold);
  font-style: normal;
}

.brand-copy small {
  margin-top: 5px;
  color: #55514b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
}

.main-nav a {
  position: relative;
  padding: 31px 0 27px;
  color: #4c4944;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a.is-active {
  color: var(--gold-dark);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 29px;
}

.header-tool {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #46423d;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.header-tool i {
  font-size: 20px;
}

.header-tool:hover {
  color: var(--gold-dark);
}

.nav-toggle,
.nav-toggle-button {
  display: none;
}


/* GLAVNI RASPORED */

.login-page {
  min-height: calc(100vh - 84px);
}

.login-container {
  display: grid;
  grid-template-columns: minmax(430px, 0.74fr) minmax(0, 1.26fr);
  align-items: stretch;
  gap: 37px;
  width: min(calc(100% - 64px), 1480px);
  min-height: 715px;
  margin: 0 auto;
  padding: 42px 0 30px;
}

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

.login-card {
  flex: 1;
  padding: 31px 35px 27px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.login-heading {
  margin-bottom: 30px;
  text-align: center;
}

.login-eyebrow {
  display: none;
}

.login-heading h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(36px, 3vw, 47px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.login-heading p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.login-line {
  display: block;
  width: 50px;
  height: 2px;
  margin: 23px auto 0;
  background: var(--gold);
}


/* FORMA */

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

.form-group {
  margin-bottom: 19px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-wrap > i {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  color: #77736d;
  font-size: 16px;
  transform: translateY(-50%);
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 48px;
  color: var(--ink);
  border: 1px solid rgba(39, 34, 28, 0.18);
  border-radius: 6px;
  outline: none;
  background: #fff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.input-wrap input::placeholder {
  color: #aaa59e;
}

.input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 146, 44, 0.08);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  padding: 0;
  color: #625f5a;
  cursor: pointer;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle i:last-child,
.password-toggle.is-visible i:first-child {
  display: none;
}

.password-toggle.is-visible i:last-child {
  display: inline-block;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #716d67;
  font-size: 12px;
  cursor: pointer;
}

.remember-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: transparent;
  font-size: 10px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.remember-option input:checked + .custom-checkbox {
  color: #fff;
  background: var(--gold);
}

.form-options > a {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-submit {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(
      135deg,
      var(--gold-light) 0%,
      var(--gold) 55%,
      var(--gold-dark) 100%
    );
  box-shadow: 0 14px 29px rgba(181, 107, 17, 0.23);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 35px rgba(181, 107, 17, 0.32);
}

.login-submit i:first-child {
  justify-self: start;
}

.login-submit i:last-child {
  justify-self: end;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  margin: 22px 0;
}

.login-divider span {
  height: 1px;
  background: var(--border);
}

.login-divider small {
  color: #8a857e;
  font-size: 12px;
}

.register-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 52px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: #fff;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.register-button:hover {
  color: #fff;
  background: var(--gold);
  transform: translateY(-2px);
}


/* MALE KARTICE */

.login-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.login-benefits article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  min-height: 103px;
  padding: 21px 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 11px 29px rgba(39, 31, 22, 0.045);
}

.login-benefits article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  font-size: 16px;
  border: 1px solid rgba(212, 146, 44, 0.3);
  border-radius: 50%;
}

.login-benefits strong {
  display: block;
  margin: 2px 0 6px;
  font-size: 11px;
}

.login-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}


/* DESNA FOTOGRAFIJA */

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 645px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.login-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.login-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 50%,
      rgba(0, 0, 0, 0.11) 100%
    );
}

.visual-badge {
  position: absolute;
  right: 44px;
  bottom: 29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 162px;
  height: 162px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 20px 50px rgba(37, 29, 20, 0.15);
  backdrop-filter: blur(12px);
}

.visual-badge-icon {
  display: flex;
  gap: 2px;
  width: 28px;
  height: 36px;
  padding: 4px;
  margin-bottom: 8px;
  border: 1px solid rgba(212, 146, 44, 0.5);
}

.visual-badge-icon span {
  flex: 1;
  background: linear-gradient(#efc06f, var(--gold-dark));
}

.visual-badge strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.visual-badge p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}


/* DONJE PREDNOSTI */

.login-features {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.login-features-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 64px), 1460px);
  margin: 0 auto;
}

.login-features article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 23px 35px;
  border-right: 1px solid var(--border);
}

.login-features article:first-child {
  border-left: 1px solid var(--border);
}

.login-features article > span {
  color: var(--gold);
  font-size: 25px;
}

.login-features strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.login-features p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}


/* TABLET */

@media (max-width: 1200px) {
  .header-tools {
    display: none;
  }

  .login-container {
    grid-template-columns: minmax(400px, 0.82fr) minmax(0, 1.18fr);
  }

  .login-benefits {
    grid-template-columns: 1fr;
  }

  .login-benefits article {
    min-height: auto;
  }

  .login-features-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-features article:nth-child(3) {
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  .login-features article:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}


/* MOBILNA NAVIGACIJA */

@media (max-width: 950px) {
  .header-container {
    min-height: 76px;
  }

  .nav-toggle-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 43px;
    height: 43px;
    cursor: pointer;
  }

  .nav-toggle-button span {
    width: 25px;
    height: 2px;
    margin-left: auto;
    background: var(--ink);
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 26px;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 22px 40px rgba(35, 29, 22, 0.11);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
  }

  .main-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a::after {
    bottom: 9px;
  }

  .nav-toggle:checked ~ .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .login-container {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .login-visual {
    min-height: 520px;
  }

  .login-benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* MOBITEL */

@media (max-width: 680px) {
  .header-container,
  .login-container,
  .login-features-container {
    width: min(calc(100% - 30px), 1480px);
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .login-card {
    padding: 29px 21px 24px;
  }

  .login-heading h1 {
    font-size: 37px;
  }

  .login-heading p {
    font-size: 14px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .login-benefits {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 430px;
  }

  .visual-badge {
    right: 18px;
    bottom: 18px;
    width: 139px;
    height: 139px;
  }

  .login-features-container {
    grid-template-columns: 1fr;
  }

  .login-features article,
  .login-features article:first-child,
  .login-features article:nth-child(3),
  .login-features article:nth-child(4) {
    min-height: 90px;
    border-top: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }
}


@media (max-width: 420px) {
  .login-container {
    width: calc(100% - 22px);
  }

  .login-visual {
    min-height: 360px;
  }

  .visual-badge {
    width: 125px;
    height: 125px;
    padding: 15px;
  }

  .visual-badge strong {
    font-size: 16px;
  }
}
