/* Базовые стили как в Marins */
html {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: #000;
    box-sizing: border-box;
    text-align: left;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    background: #e5e5e5;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Контейнеры как в Marins */
.indents_container {
    position: relative;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    flex: 1;
    background: #e5e5e5;
}

.bounding_container {
    position: relative;
    max-width: 880px;
    margin: auto;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 24px;
}

.min_container {
    max-width: 432px;
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.sm\:justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

/* Логотип и заголовок (адаптация под ваш бренд) */
.header_container {
    text-align: center;
    margin-bottom: 32px;
}

.header_logo {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
}

.header_title {
    font-size: 22px;
    font-weight: 400;
    color: #004165;
    margin: 0;
    line-height: normal;
}

.header_text {
    font-size: 14px;
    font-weight: 300;
    color: #555;
    margin: 8px 0 0;
    line-height: normal;
}

/* Форма (точная копия Marins) */
.form {
    width: 100%;
    display: block;
    padding: 30px;
    border-radius: 40px;
    background: #fff;
    position: relative;
    text-align: left;
    margin-bottom: 40px;
}

/* Поля ввода */
.form input[type="text"],
.form input[type="email"],
.form input[type="phone"],
.form input[type="password"] {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 30px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #8F9092;
    font-weight: 300;
    font-size: 16px;
    line-height: normal;
    color: #000;
    outline: none;
    box-shadow: none;
}

.form input[type="text"]::placeholder,
.form input[type="email"]::placeholder,
.form input[type="phone"]::placeholder,
.form input[type="password"]::placeholder {
    color: #333;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="phone"]:focus,
.form input[type="password"]:focus {
    border: 1px solid #8F9092;
    outline: none;
    box-shadow: none;
}

/* Метки полей */
.block {
    display: block;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 14px;
    line-height: 1.25rem;
}

.text-gray-700 {
    color: #374151;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.w-full {
    width: 100%;
}

/* Чекбокс (точная копия Marins) */
.checkbox {
    display: inline-block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    text-align: left;
    font-size: 0;
    line-height: 0;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.checkbox .checkbox_txt_block {
    height: 100%;
    display: table;
    margin-left: 34px;
}

.checkbox .checkbox_txt_block .checkbox_txt {
    display: table-cell;
    font-size: 16px;
    font-weight: 300;
    line-height: 140%;
    color: #333;
    vertical-align: middle;
}

.checkbox input {
    position: absolute;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

.checkbox input:checked ~ .checkmark {
    background: #004165;
}

.checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    border: 1px solid #004165;
    border-radius: 8px;
}

.checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 2px;
    width: 5px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-sizing: content-box;
}

/* Кнопка (точная копия Marins) */
.btn {
    background: #004165;
    color: #fff;
    height: 48px;
    padding-left: 36px;
    padding-right: 36px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    outline: 0;
    border-radius: 30px;
    border: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 100%;
}

.btn:hover {
    background: #002a47;
}

/* Ссылка "Забыли пароль?" */
.forgot-link {
    text-align: center;
    margin-top: 16px;
}

.forgot-link a {
    color: #08c;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* Сообщение об ошибке (показывается через класс invalid) */
.invalid_feedback {
    display: none;
    margin-top: 20px;
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 30px;
    font-size: 14px;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
}

.invalid .invalid_feedback {
    display: block;
}

.invalid .form input[type="text"],
.invalid .form input[type="email"],
.invalid .form input[type="phone"],
.invalid .form input[type="password"] {
    border-color: #dc3545;
}

/* Заглушка (как в Marins) */
#loginSuccess {
    display: none;
}

#loginSuccess.active {
    display: block;
}

#loginSuccess .modal-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

#loginSuccess .modal-body {
    text-align: center;
    padding: 60px 30px;
}

#loginSuccess h1 {
    font-size: 28px;
    color: #004165;
    margin-bottom: 20px;
}

#loginSuccess p {
    font-size: 16px;
    color: #555;
}

/* Адаптивность как в Marins */
@media (max-width: 1200px) {
    .indents_container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .form {
        padding: 20px;
        border-radius: 30px;
    }
    
    .form input[type="text"],
    .form input[type="email"],
    .form input[type="phone"],
    .form input[type="password"] {
        height: 42px;
        padding: 0 20px;
        font-size: 14px;
    }
    
    .btn {
        height: 42px;
        font-size: 14px;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .header_title {
        font-size: 18px;
    }
    
    .header_text {
        font-size: 12px;
    }
}

/* Стили для отображения заглушки поверх страницы */
#loginSuccess {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

#loginSuccess.active {
    display: flex !important;
}

#loginSuccess .form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: white;
    border-radius: 40px;
    padding: 30px;
}