/* ============================================
   Login stranica — split layout
   ============================================ */

.login-container {
  display: flex;
  min-height: 100vh;
  background: var(--surface-1);
}

/* Lijeva strana — forma */
.login-form-side {
  flex: 1;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.login-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: white;
  font-size: 15px;
}

.login-brand-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.login-brand-domain {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.login-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Forma */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-1);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 77, 137, 0.15);
}

.form-input-wrapper {
  position: relative;
}

.form-input-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
}

.form-input-toggle:hover {
  color: var(--text-secondary);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 24px;
}

.form-checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Gumbi */
.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.link-forgot {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}

.link-forgot:hover {
  text-decoration: underline;
}

/* Signup link */
.login-signup {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 24px;
}

.login-signup a {
  color: var(--brand);
  font-weight: 500;
  margin-left: 4px;
}

/* Support box */
.login-support {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
}

.login-support-icon {
  color: var(--brand-dark);
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 2px;
}

.login-support-title {
  font-size: 13px;
  color: var(--brand-dark);
  font-weight: 500;
  margin-bottom: 2px;
}

.login-support-text {
  font-size: 12px;
  color: var(--brand);
}

/* Desna strana — brand poruka */
.login-brand-side {
  flex: 1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-brand-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 20px;
}

.login-brand-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

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

.login-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.login-benefit-text {
  font-size: 14px;
}

.login-footer-brand {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* Responsive — mobitel */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
  }

  .login-form-side {
    max-width: none;
    padding: 40px 24px;
  }

  .login-brand-side {
    padding: 40px 24px;
    order: -1; /* Brand ide gore na mobitelu */
  }

  .login-brand-title {
    font-size: 22px;
  }

  .login-benefits {
    gap: 12px;
  }
}
