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

:root {
  --rekono-dark: #1f4584;
  --rekono-light: #3bb5e8;
  --rekono-link: #1f6fb8;
  --rekono-text: #4a4a4a;
  --rekono-muted: #8a8a8a;
  --rekono-border: #c8c8c8;
  --rekono-bg: #ffffff;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--rekono-bg);
  color: var(--rekono-text);
  line-height: 1.4;
}

.top-bar {
  background: var(--rekono-dark);
  color: #fff;
  text-align: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.top-bar-line2::before {
  content: " ";
}

.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 64px;
}

.lang-switch {
  width: 100%;
  max-width: 520px;
  text-align: right;
  font-size: 14px;
  margin-bottom: 24px;
}

.lang-active {
  color: var(--rekono-link);
  font-weight: 700;
  margin-right: 6px;
}

.lang-link {
  color: var(--rekono-muted);
  text-decoration: none;
}

.lang-link:hover {
  color: var(--rekono-link);
}

.logo-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}

.logo-wrap .logo-main {
  display: block;
  max-width: 340px;
  width: 100%;
  height: auto;
}

.logo-wrap .logo-trust {
  display: block;
  height: 46px;
  width: auto;
  flex-shrink: 0;
  margin-top: 12px;
}

.login-form {
  width: 100%;
  max-width: 520px;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rekono-muted);
  margin-bottom: 8px;
}

.field-input-wrap {
  position: relative;
}

.field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rekono-border);
  background: transparent;
  padding: 8px 36px 10px 0;
  font-size: 16px;
  color: var(--rekono-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.field-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.field-row .field input {
  padding-right: 0;
}

.field input:focus {
  border-bottom-color: var(--rekono-light);
}

.password-toggle {
  position: absolute;
  right: 0;
  bottom: 8px;
  border: none;
  background: transparent;
  color: var(--rekono-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

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

.password-toggle svg {
  width: 22px;
  height: 22px;
}

.form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.form-links a {
  color: var(--rekono-link);
  font-size: 14px;
  text-decoration: none;
}

.form-links a:hover {
  text-decoration: underline;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--rekono-dark);
  cursor: pointer;
}

.remember-row label {
  font-size: 14px;
  color: var(--rekono-muted);
  cursor: pointer;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rekono-light);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.help-icon:hover {
  background: var(--rekono-dark);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  border: 2px solid var(--rekono-dark);
  background: var(--rekono-dark);
  color: #fff;
  margin-bottom: 16px;
}

.btn-primary:hover {
  background: #17386f;
  border-color: #17386f;
}

.btn-secondary {
  border: 2px solid var(--rekono-dark);
  background: #fff;
  color: var(--rekono-dark);
}

.btn-secondary:hover {
  background: #f4f8fc;
}

.btn-secondary .help-icon {
  margin-left: auto;
}

@media (max-width: 560px) {
  .top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    padding: 10px 16px;
    line-height: 1.4;
  }

  .top-bar-line2::before {
    content: none;
  }

  .login-page {
    align-items: stretch;
    padding: 16px 16px 40px;
  }

  .lang-switch {
    max-width: none;
    margin-bottom: 18px;
    font-size: 16px;
  }

  .logo-wrap {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 28px;
  }

  .logo-wrap .logo-main {
    max-width: 210px;
    width: auto;
  }

  .logo-wrap .logo-trust {
    height: 28px;
    margin-top: 8px;
  }

  .login-form {
    max-width: none;
  }

  .field {
    margin-bottom: 22px;
  }

  .field label {
    font-size: 15px;
  }

  .field input {
    font-size: 18px;
  }

  .form-links {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
  }

  .form-links a {
    font-size: 15px;
  }

  .remember-row {
    margin-bottom: 24px;
  }

  .remember-row label {
    font-size: 16px;
  }

  .btn {
    font-size: 15px;
    padding: 14px 20px;
  }

  .btn-secondary span:first-child {
    text-align: center;
    flex: 1;
  }
}
