:root {
  --primary: #0055A4;
  --accent: #F4A300;
  --bg: #f5f7fa;
  --text: #2b2b2b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.button, .scan-btn {
  background: var(--primary);
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.button:hover {
  background: var(--accent);
}

.scan-btn {
  margin-bottom: 15px;
}

.scan-btn__cancel {
  background: orangered;
}

label:has(input) {
  display: inline-block;
  position: relative;
  margin-bottom: 10px;
  width: 100%;
}

input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #5a5aff;
}

label span:not(.show-password) {
  position: absolute;
  top: -6px;
  left: 10px;
  font-size: 12px;
  background-color: #fff;
  padding-inline: 5px;
  color: #5a5aff;
}

input:focus-visible {
  outline-color: var(--primary);
  border-color: #5a5aff;
}

input:-webkit-autofill {
  background-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  color: #000 !important;
}

label .show-password {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 1;
  cursor: pointer;
  color: #5a5aff;
  transform: translateY(-50%) scale(0.8);
}

.tablist {
  width: 360px;
  display: flex;
  justify-content: space-between;
  gap: 1px;
}

.tablist .tab {
  width: 50%;
  line-height: 36px;
  border: none;
  background-color: #ddd;
  color: #141414;
  text-align: center;
  text-decoration: none;
}

.tablist .tab.active {
  background-color: var(--primary);
  color: #fff;
}

.tablist .tab:not(.active):hover {
  background-color: var(--primary);
  color: #fff;
}

@media screen and (max-width: 600px) {
  .card {
    max-width: 380px;
  }

  .tablist {
    width: 380px;
  }
  
  #register-form > div {
      flex-direction: column !important;
      gap: 0px !important;
  }
}