@import url('../fonts/stylesheet.css');

:root {
    --font-family: 'Basis Grotesque Pro', sans-serif;
    --background-news: #FFFFFF;
    --text-color: #455468;
    --text-color-2: #8897AE;
    --text-color-tag: rgba(34, 45, 65, 0.50);
    --line-color: #1C222B0D;
    --name-color: #1C222B;
    --background-main: #F9FAFB;
    --background-exit: #1C222B0D;
    --background-choose: #FFFFFF;
    --background-token: #ffffff;
    --history-text: #455468BF;
    --tarif-back: #E8F6FF;
    --tarif-frame: #E9EFF6;
    --filter-img: none;
    --back-close: url('/img/icons/close.svg');
    box-sizing: border-box;
}

[data-bs-theme="dark"] {
    --background-news: #202020;
    --text-color: #FFFFFF;
    --text-color-2: #CDCDCD;
    --text-color-tag: rgba(255, 255, 255, 0.50);
    --line-color: #FFFFFF0D;
    --name-color: #FFFFFF;
    --background-main: #272727;
    --background-exit: #272727;
    --background-choose: #272727;
    --background-token: #202020;
    --history-text: #FFFFFFBF;
    --tarif-back: #272727;
    --tarif-frame: #FFFFFF0D;
    --back-close: url('/img/icons/close_dark.svg');
    --filter-img: invert(1) brightness(2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "SF Pro Display", sans-serif;
  background-color: #FDFEFF;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.sign {
  background: #FDFEFF;
  border-radius: 20px;
  width: 500px;
  height: 600px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.auth {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 50px auto 0;
}

.logo {
  width: 213px;
  height: auto;
  margin-bottom: 30px;
}

.head-text {
  text-align: center;
  margin-top: auto;
}

.header {
  font-size: 32px;
  font-weight: 600;
  color: #3c3d4e;
}

.discription {
  font-size: 19px;
  font-weight: 500;
  color: #6b7587;
  margin-top: 8px;
}

.controls {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

.tab-controls {
  width: 420px;
  display: flex;
  justify-content: space-between;
  background: #f2f4f8;
  border-radius: 20px;
}

.tab-controls__btn {
  width: 50%;
  padding: 15px 0;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  color: #3c3d4e;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.tab-controls__btn.active {
  background-color: #007aff;
  color: white;
}

.form__group {
  margin-bottom: 20px;
  width: 100%;
  position: relative;
}

.form__label {
  font-size: 14px;
  font-weight: 500;
  color: #3c3d4e;
  margin-bottom: 8px;
}

.form__field {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form__field:focus {
  border-color: #3c3d4e;
}

.correct {
  width: 20px;
  height: 20px;
  background-image: url('check-icon.svg');
  background-size: cover;
  position: absolute;
  right: 10px;
  top: 35%;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #007aff;
  color: white;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
}

.submit-btn:hover {
  background-color: #024288;
}

.text-footer {
  text-align: center;
  font-size: 17px;
  color: #6b7587;
  margin-top: 20px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.href-sign a {
  color: #007aff;
  font-weight: 500;
}

.href-sign a:hover {
  text-decoration: underline;
}

.toggle-button {
  background: transparent;
  padding: 10px 15px;
  font-size: 16px;
  color: #6b7587;
  border: 1px solid #6b7587;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-button:hover {
  background-color: #f2f4f8;
}

.toggle-button.active {
  background-color: #007aff;
  color: white;
}

.toggle-input {
  display: none;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  cursor: pointer;
}

.toggle-switch {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 100px;
  height: 40px;
  background: #fff;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

#tab-email:checked ~ .toggle-switch {
  transform: translateX(0);
}

#tab-bot:checked ~ .toggle-switch {
  transform: translateX(100%);
}

.label {
  font-size: 16px;
  font-weight: 500;
  color: #6b7587;
  text-align: center;
  margin-bottom: 10px;
}

.insert {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.text-block {
  position: absolute;
  left: 65px;
  font-size: 16px;
  line-height: 28px;
  color: #6b7587;
}

.hidden {
  display: none;
}

.text-footer a {
  color: #007aff;
  font-weight: 500;
}


[data-bs-theme="dark"] .text-theme {
  color: #dee2e6 !important;
}

[data-bs-theme="light"] .text-theme {
  color: #1c222b !important;
}


.fade-text {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.fade-text.hidden {
  opacity: 0;
}

/* Модальное окно смены пароля */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-change-pass {
  background: var(--background-main);
  padding: 1.5rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-button {
  width: 24px;
  height: 24px;
  background: transparent;
  background-image: var(--back-close);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
}

.popup-body {
  margin-top: 1rem;
}

.popup-body input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.popup-body button {
  width: 100%;
  padding: 0.5rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.popup-body button:hover {
  background: #0056b3;
}