﻿
*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    margin-top: 5px;
    overflow: hidden; /* Чтобы не было двойных скроллов */
    background-color: #f0f2f5;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* 1. Родитель должен быть жестко привязан к экрану */
#form1 {
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background-color: #f0f2f5;
    display: block;
    transition: padding-top 0.3s ease-in-out;
}

/* 2. Контейнер колонок */
.row-flex {
    padding-top: 5px;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    height: 100dvh;
    margin: 0 auto;
    gap: 10px;
    align-items: stretch;
    transition: height 0.3s ease-in-out;
}

/* Общий контейнер входа */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

.auth-card {
    width: 100%;
    max-width: 340px;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #2980b9;
    margin-bottom: 35px;
    text-align: center;
}

/* Поля ввода с подчеркиванием */
.auth-group {
    margin-bottom: 25px;
}

.auth-input-row {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #eee;
    padding: 8px 0;
    transition: border-color 0.3s;

}

    .auth-input-row:focus-within {
        border-bottom-color: #2980b9;
    }
 

.auth-icon {
    width: 30px;
    color: #ccc;
    font-size: 14px;
    text-align: center;
}

.auth-input-row input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent;
 
    color: #333;
}

/* СТИЛЬ КНОПКИ КАК НА КАРТИНКЕ */
.btn-auth-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #e9f5ee !important; /* Светло-зеленый фон */
    color: #1e8449 !important; /* Темно-зеленый текст */
    border: none !important;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-auth-login:hover {
        background-color: #dcf0e5 !important;
        transform: translateY(-1px);
    }
    /* Стили для иконок внутри кнопки */
    .btn-auth-login i.fa-regular {
        font-size: 16px;
    }

    .btn-auth-login i.fa-solid {
        font-size: 18px;
        color: #1e8449;
    }

.auth-logo-img {
    display: block;
    margin: 0 auto 20px auto; /* Центрируем и делаем отступ снизу */
    max-width: 160px; /* Ограничиваем ширину */
    height: auto; /* Сохраняем пропорции */
    object-fit: contain; /* Чтобы картинка не искажалась */
}

/* Замените #ffffff на нужный вам цвет фона */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}


/* Контейнер для центрирования (если нужно) */
.auth-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.auth-logo-img {
    /* Делает белый фон прозрачным, оставляя темные участки */
    mix-blend-mode: multiply;
}
/* Класс анимации, который мы будем включать через jQuery */
.auth-logo-img.is-loading {
    animation: logo-rotate 2.5s infinite linear, logo-pulse 1.5s infinite ease-in-out;
}

/* Вращение по кругу */
@keyframes logo-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Эффект пульсации прозрачности */
@keyframes logo-pulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(0,150,255,0.2));
    }

    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 15px rgba(0,150,255,0.5));
    }
}