/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: inherit;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Button Sizes */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--md {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Button Variants */
.btn--primary {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.btn--primary:hover:not(:disabled) {
  background-color: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn--secondary {
  background-color: #6b7280;
  color: white;
  border-color: #6b7280;
}

.btn--secondary:hover:not(:disabled) {
  background-color: #4b5563;
  border-color: #4b5563;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: #3b82f6;
  border-color: #3b82f6;
}

.btn--outline:hover:not(:disabled) {
  background-color: #3b82f6;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn--danger {
  background-color: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn--danger:hover:not(:disabled) {
  background-color: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn--success {
  background-color: #10b981;
  color: white;
  border-color: #10b981;
}

.btn--success:hover:not(:disabled) {
  background-color: #059669;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Full Width */
.btn--full-width {
  width: 100%;
}

/* Loading State */
.btn--loading {
  cursor: wait;
}

.btn__text--loading {
  opacity: 0.7;
}

.btn__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  
  .btn--md {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}
.TermsContent_section__CNtAZ {
  margin-bottom: 2rem;
}

.TermsContent_heading__LkO5n {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.TermsContent_text__kYlbu {
  color: #374151;
  line-height: 1.7;
}

.TermsContent_contactBox__6iJtt {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.TermsContent_companyTitle__uj0Uc {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.PrivacyContent_section__02Vc3 {
  margin-bottom: 2rem;
}

.PrivacyContent_heading___WFT_ {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.PrivacyContent_text__t_ozh {
  color: #374151;
  line-height: 1.7;
}

.PrivacyContent_contactBox__cKl3E {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.PrivacyContent_companyTitle__rM33K {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

/* Close button for modal */
.Modal_modal__close__c7qJI {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  color: #888;
  transition: color 0.2s, background 0.2s;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.Modal_modal__close__c7qJI:hover, .Modal_modal__close__c7qJI:focus {
  color: #222;
  background: #f0f0f0;
  outline: none;
}
.Modal_modal__close__c7qJI svg {
  width: 1.5em;
  height: 1.5em;
}
/* Modal backdrop (контейнер) */
.Modal_modal__backdrop__NDuS7 {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay (затемнение) */
.Modal_modal__overlay__AvQTq {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  animation: Modal_modal-fade-in__ExGrz 0.2s;
}

@keyframes Modal_modal-fade-in__ExGrz {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal window */
.Modal_modal__window__p3z1c {
  position: relative;
  width: 100%;
  max-width: 28rem; /* 448px, аналог max-w-md */
  max-height: 100%;
  border-radius: 1rem; /* 16px */
  background: #fff;
  padding: 1.5rem; /* 24px */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: Modal_modal-slide-up__92qg6 0.2s;
  overflow-y: auto;
}
.Modal_modal__buttons__QeS_G {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.Modal_modal__buttons__QeS_G button {
  width: 100%;
  max-width: 240px;
  min-height: 44px; /* стандартная высота кнопки */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}
@keyframes Modal_modal-slide-up__92qg6 {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}





/* Ссылка для повторной отправки кода */
.AuthDialog_resetLink__zjsTd {
  color: #2563eb;
  background: none;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.AuthDialog_resetLink__zjsTd:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}

/* Форма авторизации (фон, скругления, тень) */
.AuthDialog_form__8oOh8 {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* Заголовок формы */
.AuthDialog_title__8e3a4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}

/* Сообщение об ошибке */
.AuthDialog_error__Myqzh {
  color: #dc2626;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Вертикальный отступ между элементами формы */
.AuthDialog_spaceY4__mWgHq > * + * {
  margin-top: 1rem;
}

/* Блок с email и кнопкой редактирования */
.AuthDialog_flexRow__PsCUt {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Маленький серый текст */
.AuthDialog_textSm__BG6GW {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

/* Лейбл */
.AuthDialog_label__MZK22 {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}
/*для выравнивания иконок:*/
.AuthDialog_buttonIcon__H9_7B {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5em;
}
.AuthDialog_active__MrViw {
  outline: 2px solid #005bb5;
  outline-offset: 2px;
  background-color: #d0e7ff;
}

.AuthDialog_emailInput__saQNC {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 1.25rem; /* 20px, для отступа между полями */
}

.AuthDialog_emailInput__saQNC label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.AuthDialog_emailInput__saQNC input {
  width: 100%;
  box-sizing: border-box;
}

.AuthDialog_codeInput__Pqnrz {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 1.25rem;
}

.AuthDialog_codeInput__Pqnrz label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.AuthDialog_codeInput__Pqnrz input {
  width: 100%;
  box-sizing: border-box;
}
.AuthDialog_agreementText__64hU9{
  padding-top: 1em;
  font-size: 0.875rem; /* 14px */
  color: #6b7280; /* серый цвет текста */

}

.AuthDialog_agreementText__64hU9 a {
  color: #2563eb; /* синий, как у ссылок */
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.AuthDialog_agreementText__64hU9 a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Стили для модального окна */
.AuthDialog_modalOverlay__OOsfY {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.AuthDialog_modalContent__QxWw5 {
  background: #fff;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
  position: relative;
}

.AuthDialog_modalClose__PU5aF {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}
.AuthDialog_modalClose__PU5aF:hover {
  color: #111;
}

/* Информационное сообщение */
.AuthDialog_infoMessage__UrwFU {
  background-color: #e8f4fd;
  border: 1px solid #b3d9f7;
  color: #0866ff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.4;
}


.MessageBox_messageBox__ffL0B {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 280px;
  max-width: 360px;
}

.MessageBox_header__pjJZL {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  text-align: center;
}

.MessageBox_iconRow__fXzdc {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1em;
}

.MessageBox_icon__2lAZU {
  width: 3em;
  height: 3em;
  margin-right: 1em;
  flex-shrink: 0;
}

.MessageBox_message__mXEPJ {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5em;
  text-align: left;
}

.MessageBox_buttons__BDGhv {
  display: flex;
  gap: 0.75em;
  justify-content: center;
}

.MessageBox_button__bupVM {
  min-width: 80px;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  border: none;
  background: #e0e0e0;
  color: #222;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.MessageBox_button__bupVM:hover {
  background-color: #005bb5;
}


.MessageBox_icon-info__SGzPv {
  fill: #2196f3;
}

.MessageBox_icon-warning__wm3mU {
  fill: #ff9800;
}

.MessageBox_icon-error__mYxyl {
  fill: #f44336;
}

.MessageBox_icon-question__Nj70a {
  fill: #4caf50;
}

.MessageBox_icon-green__hi3_8 {
  fill: #4caf50; /* зелёный */
}

.MessageBox_icon-yellow___F8xs {
  fill: #ff9800; /* жёлтый */
}

.MessageBox_icon-red__FL0mS {
  fill: #f44336; /* красный */
}

.MessageBox_button__bupVM.MessageBox_active__oYZI8 {
  border: 2px solid #3399ff;
 /* background-color: #e0f0ff;*/  
}
/*
.button:focus {
  outline: 2px solid #3399ff;
  outline-offset: 2px;
} */
.LanguageSwitcher_languageSwitcher__ySpU3 {
  position: relative;
  display: inline-block;
}

.LanguageSwitcher_switcherButton__0VUEy {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 70px;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.LanguageSwitcher_switcherButton__0VUEy:hover {
  border-color: #4f46e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.LanguageSwitcher_switcherButton__0VUEy:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-color: #4f46e5;
}

.LanguageSwitcher_switcherButton__0VUEy.LanguageSwitcher_active__623Ae {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.LanguageSwitcher_flagIcon__KOhH_ {
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.LanguageSwitcher_globeIcon___e6ca {
  color: #6b7280;
  flex-shrink: 0;
}

.LanguageSwitcher_currentLang__f07aw {
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  letter-spacing: 0.025em;
}

.LanguageSwitcher_chevronIcon__5fPGu {
  color: #6b7280;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.LanguageSwitcher_switcherButton__0VUEy.LanguageSwitcher_active__623Ae .LanguageSwitcher_chevronIcon__5fPGu {
  transform: rotate(180deg);
}

.LanguageSwitcher_dropdown__8RQHo {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
  min-width: 160px;
  z-index: 50;
  padding: 4px 0;
  overflow: hidden;
}

.LanguageSwitcher_fadeIn__tODpC {
  animation: LanguageSwitcher_fadeIn__tODpC 0.15s ease-out;
}

@keyframes LanguageSwitcher_fadeIn__tODpC {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.LanguageSwitcher_dropdownItem__6aaOO {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #374151;
  text-decoration: none;
  transition: all 0.1s ease;
  gap: 12px;
  position: relative;
}

.LanguageSwitcher_dropdownItem__6aaOO:hover {
  background: #f8fafc;
  color: #4f46e5;
}

.LanguageSwitcher_dropdownItem__6aaOO:focus {
  background: #f1f5f9;
  outline: none;
  color: #4f46e5;
}

.LanguageSwitcher_dropdownItem__6aaOO.LanguageSwitcher_active__623Ae {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 500;
}



.LanguageSwitcher_languageName__hwuRT {
  flex: 1;
  font-weight: 400;
}

.LanguageSwitcher_languageCode__UI838 {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.LanguageSwitcher_dropdownItem__6aaOO:hover .LanguageSwitcher_languageCode__UI838,
.LanguageSwitcher_dropdownItem__6aaOO:focus .LanguageSwitcher_languageCode__UI838,
.LanguageSwitcher_dropdownItem__6aaOO.LanguageSwitcher_active__623Ae .LanguageSwitcher_languageCode__UI838 {
  color: #4f46e5;
}

/* Темная тема (если нужна в будущем) */
@media (prefers-color-scheme: dark) {
  .LanguageSwitcher_switcherButton__0VUEy {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .LanguageSwitcher_switcherButton__0VUEy:hover {
    border-color: #6366f1;
  }
  
  .LanguageSwitcher_dropdown__8RQHo {
    background: #1f2937;
    border-color: #374151;
  }
  
  .LanguageSwitcher_dropdownItem__6aaOO {
    color: #f9fafb;
  }
  
  .LanguageSwitcher_dropdownItem__6aaOO:hover {
    background: #374151;
  }
  
  .LanguageSwitcher_dropdownItem__6aaOO.LanguageSwitcher_active__623Ae {
    background: #1e1b4b;
    color: #a5b4fc;
  }
}

/* Logo.module.css */

.Logo_logo__ota2E {
  /* ставим элементы в один ряд */
  display: inline-flex;
  align-items: center;   /* вертикальное выравнивание */
  gap: 0.5rem;           /* расстояние между иконкой и текстом */

  font-weight: 700;
  color: #4f46e5;        /* indigo-600 */
  text-decoration: none;
  padding-left: 1em;
}

.Logo_logo__ota2E:hover { color: #4338ca; }   /* indigo-700 */

.Logo_icon__CQ2X3 {          /* размеры SVG/PNG */
  width: 32px;
  height: 32px;
}

.Logo_text__rWm65 {          /* можно оставить пустым, если стили выше устраивают */
  font-size: 1.25rem;    /* text-xl */
}
/* Контейнер всей страницы входа (центрирование и фон) */
.SigninPage_container__X239w {
  min-height: 100vh;
  background: #f9fafb;
  padding: 3rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Обертка для формы (белый фон, скругления, тень) */
.SigninPage_formWrapper__pZegG {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 2rem;
}

/* Секция вопроса в модальном окне (центрирование текста) */
.SigninPage_modalQuestion___OIEc {
  text-align: center;
  padding: 2rem 1rem;
}

/* Заголовок модального окна */
.SigninPage_modalTitle__91wrm {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Ряд кнопок (горизонтальное расположение и отступы) */
.SigninPage_buttonRow__x_WSq {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Базовый стиль кнопки */
.SigninPage_button__Wrd6B {
  min-width: 80px;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

/* Основная кнопка (синяя) */
.SigninPage_buttonPrimary__KxJ_e {
  background: #2563eb;
  color: #fff;
}
.SigninPage_buttonPrimary__KxJ_e:hover {
  background: #1d4ed8;
}

/* Второстепенная кнопка (серая) */
.SigninPage_buttonSecondary__Px8Xn {
  background: #e5e7eb;
  color: #1f2937;
}
.SigninPage_buttonSecondary__Px8Xn:hover {
  background: #d1d5db;
}
.SigninPage_logo__oenee {
  font-size: 2rem;
  font-weight: bold;
  color: #1a202c; /* Темно-серый, можно заменить на фирменный */
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.SigninPage_logo__oenee:hover, .SigninPage_logo__oenee:focus {
  color: #2563eb; /* Синий акцент при наведении */
  text-decoration: underline;
}

.SigninPage_languageSwitcherAuth__cf2Yt {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.SigninPage_topBar__e7hDV {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0 0 0 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  z-index: 100;
}

.SigninPage_topBarContent__HHpss {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 48px;
  padding: 0 24px;
}
