/* assets/css/auth.css - Очищенная версия */

:root {
    --primary-gradient-start: #29519F;
    --primary-gradient-end: #6499D1;
    --accent-color: #1a73e8;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-muted: rgba(0, 0, 0, 0.6);
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.2);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --text-primary-diz: #282F3D;
    --text-secondary-diz: #4076FF;
    --text-third-diz: #697696;
}

/* Основные стили страницы */
.auth-page {
    min-height: 100vh;
    background: #fff;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.itco_log_left {
    width: 780px;
    background: linear-gradient(90deg, #0844FF 0%, #64B8FB 100%);
    display: flex;
    border-radius: 24px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.itco_log_left img {
    width: 500px;
    height: auto;
}

/* Контейнер для форм */
.materialContainer {
    max-width: 1440px;
    display: flex;
    height: 100vh;
    flex-direction: row;
    gap: 20px;
    margin: 0 auto;
    padding: 20px;
    height: 826px;
}

/* Базовые стили для боксов */
.box, .overbox {
    width: 100%;
    transition: var(--transition-base);
    background: #fff;
    border-radius: 0;
    color: var(--text-dark);
}

.divas_log {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

/* Заголовки */
.title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0px;
    position: relative;
    display: inline-block;
    color: var(--text-primary-diz);
}

.pre_title {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-third-diz);
}

/* Поля ввода */
.input {
    position: relative;
    width: 100%;
}

.input input {
    width: 100%;
    height: 60px;
    border: 1px solid #E2E6F5;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 400;
    z-index: 1;
    outline: none;
    border-radius: 16px;
    padding: 0 16px 0 44px;
}

/* Убираем стандартные браузерные иконки для полей пароля */
input[type="password"] {
    -webkit-text-security: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button:focus {
    display: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

input[type="password"] {
    -moz-appearance: textfield;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.input .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.input-icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
    transition: opacity 0.3s ease;
}


/* Кнопки */
.button {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.reset {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: -10px;
}

.reset_pass {
    font-size: 14px;
    color: var(--text-secondary-diz);
    text-decoration: none;
    float: right;
    font-weight: 400;
}

.form_login, #step1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#step2{
    display: flex;
    flex-direction: column;
}
.button button {
    width: 100%;
    height: 64px;
    background: linear-gradient(90deg, #0844FF 0%, #64B8FB 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    border: none;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    transition: .3s;
    position: relative;
    overflow: hidden;
}

.button button img {
    width: 24px;
    height: auto;
}

.button button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    border-radius: 16px;
    transition: background .3s ease;
    pointer-events: none;
}



/* Переключение форм */
#loginBox,
#registerBox {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loginBox.hidden,
#registerBox.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

#loginBox:not(.hidden),
#registerBox:not(.hidden) {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Переключатель форм */
.form-switcher {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-third-diz);
}

.form-switcher a {
    color: var(--text-secondary-diz);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    margin-left: 5px;
}


/* Стили для ошибок и успеха */
.auth-error,
.auth-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: -16px;
}

.citat {
    position: absolute;
    bottom: 48px;
    left: 48px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    width: 100%;

}

.auth-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.auth-errors ul {
    margin: 0;
    padding-left: 20px;
}

/* Контейнер форм */
.form-switch-container {
    position: relative;
    width: 600px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 64px;
    box-sizing: border-box;
    min-height: 620px;
    overflow: hidden;
}
@media screen and (max-width:1200px){
    .auth-page{
        display: block;
    }
    .materialContainer{
        height: 100%;

    }
}
@media screen and (max-width: 768px){
    .materialContainer{
        flex-direction: column;
    }
    .itco_log_left{
        width: 100%;
        padding: 78px;
        order: 2;
    }
    .form-switch-container{
        width: 100%;
        padding: 16px 0px 36px 0px;
        min-height: initial;
    }
    .itco_log_left img{
        width: 100%;
    }
    .citat{
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
    }
}
.check{
    min-width: 12px;
    height: 16px !important;
    width: 16px !important;
    margin: 0px !important;
    accent-color: #0844FF !important;
    cursor: pointer;
}

.checkbox_reg{
    span{
        font-size: 16px;
    }
    a{
        text-decoration: none;
        color: var(--text-secondary-diz);

    }

}