/* ========================================
   Корвикс - Страница входа и регистрации
   ======================================== */

/* === Сброс стилей === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Глобальные переменные === */
:root {
  /* === Цвета === */
  --orange: #fd9c2b;
  --soft-orange: #fab47e;
  --middle-orange: #fad3b9;
  --light-orange: #fce8da;
  --web-orange: #fef7ee;
  --violet: #4f42e4;
  --soft-violet: #7a70eb;
  --middle-violet: #a69ff1;
  --light-violet: #cdc9f7;
  --web-violet: #ebeafc;
  --neon: #c7df44;
  --soft-neon: #d1e668;
  --middle-neon: #e1ef9e;
  --light-neon: #eaf4bd;
  --web-neon: #f9fce8;
  --graphite: #292e3c;
  --soft-graphite: #5a5e6d;
  --middle-graphite: #cdccdb;
  --light-graphite: #f0effc;
  --web-graphite: #f5f4fd;
  --white: #ffffff;
  --dark-white: #ECEDF2;
  --text: #000000;
  --white-text: #ffffff;
  --light-text: #1f2937;
  --color-link: #04b;
  --color-link-dark: #56a8fc;

  /* Шрифт */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;
  --fw-extrabold: 950;

  /* === Размеры === */
  --container-width: 1400px;
  --content-width: 1250px;
  --container-padding: 2rem;
  --gap: 2rem;
  --pwl-layout-padding: 2rem;
  --pwl-content-margin: 1rem;
}

/* === Базовые стили === */
html {
  scroll-padding-top: 95px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-image: url(/id/img/winter-forest.jpg);
  background-size: cover;
  background-position: center;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body a {
  text-decoration: none;
  color: inherit;
}

body h5 {
  font-size: 38px;
  font-weight: 900;
  color: var(--graphite);
  letter-spacing: -1px;
  line-height: 1.2;
}

body h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--graphite);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}

body p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--graphite);
  letter-spacing: 0px;
  line-height: 1.2;
}

/* === Стили формы входа === */
.form-content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-text {
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid var(--middle-graphite);
  padding: 2rem;
  max-height: -webkit-max-content;
  max-height: max-content;
  min-height: 0;
  padding-bottom: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  height: auto;
  width: 376px;
}

.form-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.form-logo {
  margin-bottom: 15px;
}

.form-logo img {
  display: block;
  margin: 0 auto;
  height: 64px;
  width: 64px;
}

.form-logo-text-content {
  text-align: left;
}

.form-logo-text {
  margin-bottom: 6px;
}

.form-logo-text h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
}

.form-logo-text p {
  font-size: 18px;
  margin: 0;
}

.form-inputs-content {
  display: flex;
  flex-direction: column;
}

.description-block {
  margin-bottom: 1rem;
}

.page-main-description {
  font-size: 1rem;
  margin-bottom: 0;
}

.flex.auth-phone-page .page-main-description {
  font-size: 1.125rem;
}

.input-group .phone-input-wrapper {
  margin-bottom: 12px;
  border: 2px solid var(--dark-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: none;
}

.phone-input-wrapper:focus-within {
  border-color: var(--graphite);
}

.phone-input-wrapper:hover {
  background: var(--dark-white);
}

.country-code-container {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--white);
  border-radius: 16px;
}

.country-select {
  border: none;
  background: var(--dark-white);
  border: 1px solid var(--white);
  border-radius: 14px;
  font-size: 24px;
  cursor: pointer;
  outline: none;
  appearance: none;
  text-align: center;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-appearance: none;
}

.country-select:focus {
  outline: none;
}

input[type="tel"], input[type="password"], input[type="email"], input[type="text"] {
  flex: 1;
  height: 56px;
  padding: 15px;
  border: none;
  font-size: 16px;
  background: transparent;
  color: var(--text);
}

input[type="tel"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="text"]:focus {
  outline: none;
}

/* Стиль для цифр телефона */
input[name="phone"] {
  letter-spacing: 0.5px;
  font-size: 22px;
}

.input-group input {
  width: 100%;
  height: 56px;
  padding: 15px;
  border: none;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.input-group .input-item {
  border: 2px solid var(--dark-white);
  border-radius: 16px;
}

.input-group input:focus {
  outline: none;
}

.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.btn {
  padding: 15px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: var(--fw-bold);
  height: 56px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn.full-width {
  width: 100%;
}

.btn-primary {
  background: var(--graphite);
  color: var(--white-text);
}

.btn-primary:hover {
  background-color: #000000;
}

.btn-secondary {
  background: var(--white);
  border: 2px solid var(--dark-white);
  color: var(--graphite);
}

.btn-secondary:hover {
  background: var(--web-graphite);
}

.promo-text {
  text-align: center;
  padding: 15px;
  align-items: center;
}

.promo-text-content {
  color: var(--soft-graphite);
  font-size: 14px;
  text-align: center;
}

.auth-footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: space-between;
}

.incognito-link {
  font-size: 14px;
  color: var(--soft-graphite);
}

.footer-info {
  display: flex;
  gap: 20px;
}

.footer-lang {
  font-size: 14px;
  color: var(--soft-graphite);
}

.footer-link {
  font-size: 14px;
  color: var(--soft-graphite);
}

.footer-copyright {
  font-size: 14px;
  color: var(--soft-graphite);
}

@media only screen and (max-width: 451px) {
  body {
    min-height: 100vh;
  }

  .flex .form-text {
    max-height: 100%;
    width: 100%;
  }
}