@font-face {
  font-display: swap;
  font-family: 'ClashDisplay';
  font-style: normal;
  font-weight: 600;
  src: url('/dist/assets/fonts/ClashDisplay-Semibold.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'ClashDisplay';
  font-style: normal;
  font-weight: 400;
  src: url('/dist/assets/fonts/ClashDisplay-Regular.woff2') format('woff2');
}

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

body {
  margin: 0;
  padding: 0;
}

:root {
  --auth-font: 'ClashDisplay', sans-serif;
  --auth-font-body: 'Inter', 'Archivo', sans-serif;
  --auth-green: #86EFAC;
  --auth-green-hover: #22c55e;
  --auth-black: #0a0a0a;
  --auth-gray: #717182;
  --auth-input-bg: #F3F4F6;
  --auth-border: #e5e7eb;
}

.auth-page {
  font-family: var(--auth-font-body);
  font-size: 16px;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.auth-page__form-side {
  flex: 0 0 50%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 32px;
  background: #fff;
  overflow-y: auto;
}

.auth-page__form-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.auth-page__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--auth-black);
  margin-bottom: 128px;
}

.auth-page__form-inner > :not(.auth-page__logo):not(.auth-page__copyright) {
  width: 100%;
}

.auth-page__form-inner > .auth-page__logo {
  margin-bottom: 128px;
}

.auth-page__logo-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-page__logo-square {
  width: 18.5px;
  height: 18.5px;
  border-radius: 3px;
  transform: rotate(46.29deg);
}

.auth-page__logo-square:first-child {
  background: var(--auth-green);
}

.auth-page__logo-square:nth-child(2) {
  background: var(--auth-green-hover);
}

.auth-page__logo-text {
  font-family: var(--auth-font);
  font-size: 25.6px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.auth-page__logo-img {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.auth-page__header {
  margin-bottom: 32px;
}

.auth-page__title {
  font-family: var(--auth-font);
  font-size: 40px;
  font-weight: 600;
  color: var(--auth-black);
  line-height: 1.2;
  margin: 0 0 12px;
}

.auth-page__desc {
  font-size: 16px;
  color: var(--auth-gray);
  margin: 0;
}

.auth-page__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-page__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-page__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-black);
}

.auth-page__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--auth-input-bg);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-page__input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--auth-green);
}

.auth-page__input::placeholder {
  color: var(--auth-gray);
}

.auth-page__country-wrap {
  position: relative;
}

.auth-page__country-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.auth-page__country-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-page__country-label img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.auth-page__country-chevron {
  flex-shrink: 0;
  color: var(--auth-gray);
  transition: transform 0.2s;
}

.auth-page__country-wrap[data-open="true"] .auth-page__country-chevron {
  transform: rotate(180deg);
}

.auth-page__country-dropdown[hidden] {
  display: none !important;
}

.auth-page__country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--auth-border);
  z-index: 100;
  max-height: 280px;
  display: flex;
  flex-direction: column;
}

.auth-page__country-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--auth-border);
}

.auth-page__country-search {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.auth-page__country-search:focus {
  outline: none;
  border-color: var(--auth-green);
}

.auth-page__country-list {
  overflow-y: auto;
  padding: 4px;
}

.auth-page__country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.auth-page__country-option:hover {
  background: var(--auth-input-bg);
}

.auth-page__country-option img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.auth-page__phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-page__phone-prefix img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.auth-page__input-wrap {
  position: relative;
}

.auth-page__input-wrap .auth-page__input {
  padding-right: 48px;
}

.auth-page__phone-wrap {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--auth-input-bg);
}

.auth-page__phone-prefix {
  flex-shrink: 0;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--auth-black);
  border-right: 1px solid var(--auth-border);
}

.auth-page__phone-input {
  flex: 1;
  min-width: 0;
  border-radius: 0;
  border: none;
}

.auth-page__phone-wrap:focus-within {
  box-shadow: 0 0 0 2px var(--auth-green);
}

.auth-page__toggle-pwd {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--auth-gray);
}

.auth-page__toggle-pwd:hover {
  color: var(--auth-black);
}

.auth-page__link {
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.auth-page__link:hover {
  color: var(--auth-green-hover);
}

.auth-page__link--bold {
  font-weight: 600;
}

.auth-page__forgot-wrap {
  display: flex;
  justify-content: flex-end;
}

.auth-page__submit {
  width: 100%;
  height: 52px;
  background: var(--auth-green);
  color: var(--auth-black);
  border: none;
  border-radius: 12px;
  font-family: var(--auth-font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.auth-page__submit:hover {
  background: var(--auth-green-hover);
}

.auth-page__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-page__divider {
  position: relative;
  margin: 32px 0;
}

.auth-page__divider::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.auth-page__divider-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--auth-border);
}

.auth-page__divider-text {
  position: relative;
  display: flex;
  justify-content: center;
  font-size: 14px;
  color: var(--auth-gray);
}

.auth-page__divider-text span {
  padding: 0 16px;
  background: #fff;
}

.auth-page__social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-page__social-btn {
  height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--auth-black);
}

.auth-page__social-btn:hover {
  background: var(--auth-input-bg);
}

.auth-page__footer-text {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--auth-gray);
}

.auth-page__copyright {
  margin-top: auto;
  padding-top: 128px;
  text-align: center;
  font-size: 13px;
  color: var(--auth-gray);
}

.auth-page__visual-side {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  background: #22c55e;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .auth-page__visual-side {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .auth-page {
    height: auto;
    overflow: visible;
  }

  .auth-page__form-side {
    flex: 0 0 100%;
    width: 100%;
    min-height: 100vh;
    padding: 32px 20px;
  }

  .auth-page__form-inner {
    max-width: none;
  }
}

.auth-page__visual-bg {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(60px);
}

.auth-page__visual-bg--1 {
  top: 40px;
  right: 40px;
  width: 128px;
  height: 128px;
}

.auth-page__visual-bg--2 {
  bottom: 80px;
  left: 40px;
  width: 160px;
  height: 160px;
}

.auth-page__visual-inner {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.auth-page__visual-inner--with-image {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.auth-page__visual-copy {
  display: flex;
  flex-direction: column;
}

.auth-page__visual-title {
  font-family: var(--auth-font);
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.auth-page__visual-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0 0 48px;
}

.auth-page__visual-inner--with-image .auth-page__visual-desc {
  margin: 0;
}

.auth-page__visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.auth-page__visual-stat {
  text-align: center;
}

.auth-page__visual-stat-value {
  font-family: var(--auth-font);
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}

.auth-page__visual-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.auth-page__visual-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

.auth-page__visual-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-page__visual-item:last-child {
  margin-bottom: 0;
}

.auth-page__visual-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page__visual-item-title {
  font-family: var(--auth-font);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.auth-page__visual-item-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.auth-page__visual-border {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-page__visual-inner--with-image .auth-page__visual-border {
  margin-top: 0;
  padding-top: 24px;
}

.auth-page__visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.auth-page__visual-inner--with-image .auth-page__visual-img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.auth-page__visual-preview {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 48px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-page__visual-preview-bar {
  height: 40px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.auth-page__visual-preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.auth-page__visual-preview-dot--red { background: #f87171; }
.auth-page__visual-preview-dot--yellow { background: #fbbf24; }
.auth-page__visual-preview-dot--green { background: #4ade80; }

.auth-page__visual-preview-content {
  height: 280px;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-page__visual-preview-inner {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-page__visual-preview-title {
  font-family: var(--auth-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--auth-black);
  margin: 0 0 16px;
}

.auth-page__visual-preview-field {
  height: 44px;
  background: var(--auth-input-bg);
  border-radius: 8px;
  margin-bottom: 12px;
}

.auth-page__visual-preview-btn {
  height: 44px;
  background: var(--auth-green);
  border-radius: 8px;
  margin-top: 8px;
}

.auth-page__visual-support {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page__visual-support:hover {
  background: rgba(255, 255, 255, 0.3);
}

.auth-page__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.auth-page__back-link:hover {
  color: var(--auth-black);
}

.auth-page__success-icon {
  width: 80px;
  height: 80px;
  background: rgba(134, 239, 172, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.auth-page__success-icon svg {
  color: var(--auth-green-hover);
}

.auth-page__success-email {
  font-weight: 600;
  color: var(--auth-black);
  margin-top: 4px;
}

.auth-page__success-box {
  background: var(--auth-input-bg);
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
  text-align: left;
}

.auth-page__checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
}

.auth-page__checkbox-wrap input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--auth-green);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-page__checkbox-wrap label {
  font-size: 14px;
  color: var(--auth-gray);
  line-height: 1.5;
  cursor: pointer;
}

.auth-page__checkbox-wrap a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.auth-page__checkbox-wrap a:hover {
  color: var(--auth-green-hover);
}

.auth-page__error {
  font-size: 13px;
  color: #c00;
  margin-top: 6px;
}
