body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #111827;
}

/* 
  ИСПРАВЛЕНИЕ: Добавлен этот общий класс для скрытия элементов. 
  Он будет применяться и к формам, и к выпадающему списку.
*/
.hidden {
    display: none;
}

.main-container {
    display: flex;
    height: 100vh;
}

.login-section {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo-header {
    flex-shrink: 0;
    margin-bottom: auto;
    padding-top: 3rem;
}

.logo-img {
    width: 200px;
    height: auto;
}

.login-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.login-options {
    display: flex;
    margin-bottom: 1.5rem;
}

.option-btn {
    border: none;
    background: none;
    padding: 0.5rem 0;
    margin-right: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    position: relative;
    border-bottom: 2px solid transparent;
}

.option-btn.active {
    color: #6D28D9;
    border-bottom-color: #6D28D9;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input[type="email"], input[type="password"], input[type="tel"],input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus, input[type="tel"]:focus {
    outline: none;
    border-color: #6D28D9;
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.forgot-password {
    font-size: 0.875rem;
    color: #6D28D9;
    text-decoration: none;
    font-weight: 500;
}

.login-btn {
    width: 100%;
    background-color: #6D28D9;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #5B21B6;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.signup-link a {
    color: #6D28D9;
    font-weight: 500;
    text-decoration: none;
}

.sandbox-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: 3rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.sandbox-footer a {
    color: #6D28D9;
    font-weight: 500;
    text-decoration: none;
}

/* Стили для формы с телефоном */
.mobile-input-group {
    display: flex;
}

.country-code-container {
    position: relative;
    flex-shrink: 0;
}

.country-code-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100px;
    height: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
    box-sizing: border-box;
}

.country-code-selector.open {
    border-color: #6D28D9;
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

#mobile-number {
    border-radius: 0 0.375rem 0.375rem 0;
}
#mobile-number:focus {
    position: relative;
    z-index: 1;
}

.country-code-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 300px;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid #E5E7EB;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
}

.country-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.country-item span {
    display: inline-block;
    width: 50px;
    color: #6B7280;
}

.country-item:hover, .country-item.active {
    background-color: #F3F4F6;
}
.country-item.active {
    background-color: #EDE9FE;
    color: #6D28D9;
}
.country-item.active span {
     color: #6D28D9;
}

/* Стилизация скроллбара */
.country-code-dropdown::-webkit-scrollbar {
    width: 8px;
}
.country-code-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.country-code-dropdown::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}
.country-code-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.info-section {
    width: 50%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.info-content {
    max-width: 450px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon-link {
    flex-shrink: 0;
    margin-right: 1.5rem;
    line-height: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
}

.info-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.info-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}


@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .login-section, .info-section {
        width: 100%;
        height: auto;
        padding: 2rem;
        box-sizing: border-box;
    }
    
    .info-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
        align-items: flex-start;
    }

    .login-content {
        max-width: none;
        height: auto;
    }
    
    .logo-header {
        padding-top: 0;
        margin-bottom: 2rem;
    }
    
    .sandbox-footer {
        padding-bottom: 0;
        margin-top: 2rem;
    }
}
.instruction-text {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: -1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: left;
}

.instruction-text strong {
    color: #374151;
    font-weight: 500;
}

.code-input-container {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.code-input {
    width: 100%;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid #D1D5DB;
    padding: 0;
}

.code-input:focus {
    outline: none;
    border-color: #6D28D9;
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

.login-btn:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
}

.sub-actions {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.sub-actions a {
    color: #6D28D9;
    font-weight: 500;
    text-decoration: none;
}

.back-action {
    text-align: center;
    margin-top: 2rem;
}

.back-link {
    color: #6B7280;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link:hover {
    color: #374151;
}

#auth-code {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.5em;
}