/* Общий контейнер для формы */
.auth-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    overflow: hidden;
}

/* Стиль формы */
.auth-form {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    z-index: 2;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Лёгкая тень для глубины */
}

.auth-form:hover {
    transform: scale(1.02);
}

/* Фоновая анимация */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    /* Улучшает производительность, исключая взаимодействие */
}

.phone {
    position: absolute;
    width: 80px;
    height: 160px;
    background: url('../image/phone.png') no-repeat center center;
    background-size: contain;
    opacity: 0.9;
    /* Лёгкая прозрачность для оптимизации */
    animation: float 10s infinite ease-in-out;
    /* Уменьшаем частоту */
    will-change: transform;
    /* Оптимизация анимации */
}

/* Позиции телефонов */
.phone-1 {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.phone-2 {
    top: 15%;
    right: 10%;
    animation-delay: 2s;
}

.phone-3 {
    bottom: 5%;
    left: 15%;
    animation-delay: 4s;
}

.phone-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 6s;
}

/* Анимация плавающих телефонов */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(10deg);
        /* Уменьшаем амплитуду */
    }
}

/* Стили для полей формы */
.form-control {
    border-radius: 8px;
    padding: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, #007bff, #00c4ff);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: bold;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0056b3, #0096cc);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.text-primary {
    color: #007bff !important;
    transition: color 0.3s ease;
}

.text-primary:hover {
    color: #0056b3 !important;
}

/* Адаптивность для формы регистрации */
@media (max-width: 768px) {
    .auth-form {
        max-width: 90%;
    }

    .col-md-6 {
        margin-bottom: 15px;
    }

    .auth-container {
        padding-top: 20px;
    }
}