/* Основные стили контейнера */
.registration-container {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

/* Анимация для заголовка */
@keyframes gradientTitle {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Стили для формы */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Стили для полей ввода */
.input-with-icon-wrapper {
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.input-wrapper.has-error {
    margin-bottom: 1.8rem;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    z-index: -1;
    border-radius: 30px;
    background: linear-gradient(-45deg, #f06292, #64b5f6, #ff80ab, #4facfe);
    background-size: 400% 400%;
    animation: gradientTitle 10s ease infinite;
    opacity: 0.9;
}

.form-control-login {
    width: 100%;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: white;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #000;
    height: 48px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-control-login.is-invalid {
    border-color: #dc3545;
}

/* Стили для отключения автостилей браузера */
.form-control-login:-webkit-autofill,
.form-control-login:-webkit-autofill:hover,
.form-control-login:-webkit-autofill:focus {
    -webkit-text-fill-color: #000;
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-control-login:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

/* Стили для сообщений об ошибках */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8em;
    color: #dc3545;
    padding-left: 15px;
    position: relative;
    bottom: auto;
    left: auto;
    background: transparent;
}

.invalid-feedback.d-block {
    display: block;
    background: transparent;
}

/* Стили для общей ошибки формы */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.input-with-icon-wrapper.has-error {
    margin-bottom: 1.5rem;
}

/* Стили для кнопки регистрации */
.btn-register {
    background: linear-gradient(135deg,
    #ff9a9e 0%,
    #fad0c4 20%,
    #f48fb1 40%,
    #a1c4fd 60%,
    #64b5f6 80%,
    #4facfe 100%);
    background-size: 300% 300%;
    color: white !important;
    border: none;
    border-radius: 30px;
    animation: gradientAnimation 6s ease infinite;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 600;
    padding: 10px 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Стиль для кнопки "Назад" */
.btn-back-wrapper {
    display: inline-block;
    position: relative;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: linear-gradient(-45deg, #f06292, #64b5f6, #ff80ab, #4facfe);
    background-size: 400% 400%;
    animation: gradientTitle 10s ease infinite;
    padding: 1px;
}

.btn-back {
    display: block;
    background: white !important;
    color: #000 !important;
    border: none;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    transition: inherit;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.btn-back-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Карточка формы */
.form-card-login {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem;
}
/* Контейнер кнопок */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.button-container.user-detail {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Заголовок формы */
.form-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(-45deg, #f06292, #64b5f6, #ff80ab, #4facfe, #f48fb1, #90caf9);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientTitle 10s ease infinite;
}

.gradient-title {
    background: linear-gradient(-45deg, #f06292, #64b5f6, #ff80ab, #4facfe, #f48fb1, #90caf9);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientTitle 10s ease infinite;
}

.gradient-title .title-text {
    display: inline-block;
    text-align: center;
}

.gradient-title .emoji {
    -webkit-text-fill-color: initial;
    background: none;
    animation: none;
    margin-left: 10px;
}

/* Стили для сообщений об ошибках валидации */
.validation-errors {
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    position: relative;
}

.error-item {
    color: #dc3545;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-item i {
    font-size: 1em;
    min-width: 20px;
}

/* Стили для неверных полей ввода */
.form-control-login.is-invalid {
    border-color: #dc3545;
    background-image: none;
    padding-right: 18px;
}

.input-wrapper.has-error {
    margin-bottom: 0;
}