* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1A1A1A;
    background-color: #FFFFFF;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- Левая секция (Логин) --- */
.left-section {
    flex: 0 0 45%;
    /* Ширина левой части */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #FFFFFF;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
}

.logo {
    margin-bottom: 50px;
}

.logo img {
    height: 36px;
    width: auto;
}

.title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 35px;
    color: #111827;
}

/* Кнопки */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 12px;
}

.primary-btn {
    background-color: #36342E;
    /* Темный коричнево-серый цвет как на картинке */
    color: #FFFFFF;
}

.primary-btn:hover {
    background-color: #262420;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.primary-btn svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

/* Разделитель "or" */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    color: #9CA3AF;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.divider span {
    padding: 0 16px;
}

/* Текст помощи */
.help-text {
    margin-top: 36px;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
}

.help-link {
    color: #111827;
    text-decoration: underline;
    font-weight: 500;
    text-underline-offset: 4px;
}

.help-link:hover {
    color: #000;
}

/* --- Правая секция (Иллюстрация) --- */
.right-section {
    flex: 0 0 55%;
    /* Ширина правой части */
    background-color: #F8F7F2;
    /* Светло-кремовый фон */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Концентрические круги на фоне */
.bg-circles {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.circle-1 {
    width: 350px;
    height: 350px;
}

.circle-2 {
    width: 550px;
    height: 550px;
}

.circle-3 {
    width: 750px;
    height: 750px;
}

.circle-4 {
    width: 950px;
    height: 950px;
}

.circle-5 {
    width: 1150px;
    height: 1150px;
}

/* Контент поверх кругов */
.right-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: 8%;
}

.hero-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    color: #111827;
    margin-bottom: 50px;
    line-height: 1.4;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* Сдвигаем макбук вправо, как на скриншоте */
    height: 100%;
}

.hero-image {
    max-width: 125%;
    /* Картинка выходит за рамки экрана */
    height: auto;
    object-fit: contain;
    object-position: left top;
    margin-left: 10%;
    /* Отступ слева */
}

/* --- Адаптивность для мобильных экранов --- */
@media (max-width: 992px) {
    body {
        overflow: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left-section,
    .right-section {
        flex: 1 1 100%;
        width: 100%;
    }

    .left-section {
        padding: 60px 20px;
    }

    .right-section {
        padding: 60px 20px 0 20px;
        min-height: 500px;
    }

    .hero-image {
        max-width: 100%;
        margin-left: 0;
        object-position: center top;
    }

    .hero-image-wrapper {
        justify-content: center;
    }
}

/* --- Стили для вида ввода телефона (Phone View) --- */

.back-btn {
    position: absolute;
    top: 60px;
    left: 60px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    fill: #111827;
    color: #111827;
    cursor: pointer;
    font-family: inherit;
}

.back-btn:hover {
    opacity: 0.7;
}

.title-small {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Инпут с плавающим ярлыком */
.input-group {
    position: relative;
    margin-bottom: 40px;
}

.input-group label {
    position: absolute;
    top: -9px;
    left: 12px;
    background-color: #FFFFFF;
    padding: 0 4px;
    font-size: 13px;
    color: #4B5563;
    z-index: 1;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    padding: 0 16px;
    height: 56px;
    position: relative;
}

.input-wrapper:focus-within {
    border-color: #111827;
}

.country-select {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding-right: 12px;
}

.flag {
    font-size: 20px;
}

.dropdown-icon {
    color: #9CA3AF;
}

.prefix {
    margin-left: 12px;
    font-size: 16px;
    color: #111827;
    font-weight: 500;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding-left: 12px;
    color: #111827;
    background: transparent;
    height: 100%;
}

/* Выпадающий список стран */
.country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 320px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 240px;
    overflow-y: auto;
}

/* Скроллбар для списка */
.country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px;
}

.country-dropdown::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.1s;
}

.dropdown-item:hover,
.dropdown-item.selected {
    background-color: #F3F4F6;
}

.dropdown-item .flag {
    margin-right: 12px;
    font-size: 20px;
}

.dropdown-item .country-name {
    flex: 1;
    font-size: 15px;
    color: #111827;
}

.dropdown-item .country-code {
    font-size: 15px;
    color: #6B7280;
}