.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h1 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .login-header p {
        color: #666;
        font-size: 14px;
    }

.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #555;
        font-size: 14px;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 12px 40px 12px 15px; /* Увеличиваем правый отступ */
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 14px;
        transition: all 0.3s;
        box-sizing: border-box; /* Важно! */
    }

        .form-group input:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
            outline: none;
        }

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

    .forgot-password a {
        color: #667eea;
        font-size: 13px;
        text-decoration: none;
        transition: color 0.3s;
    }

        .forgot-password a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .login-button:hover {
        background: linear-gradient(to right, #5a6fd1, #6a4296);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

    .signup-link a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

        .signup-link a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    line-height: 1; /* Убираем лишнее пространство вокруг иконки */
}

/* Добавим обертку для более точного позиционирования */
.input-container {
    position: relative;
    width: 100%;
}

.gradient-text {
    background: linear-gradient(to right, #667eea, #612e90);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.text-danger {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.error_container_main {
    position: relative;
    height: 50px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

    .modal-header h2 {
        margin: 0;
        font-size: 20px;
        color: #333;
    }

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

    .close:hover {
        color: #333;
    }

.modal-body {
    padding: 30px;
}

    .modal-body p {
        margin-bottom: 20px;
        color: #666;
        text-align: center;
    }

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Стили для модального окна смены пароля */
.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .modal-buttons .login-button {
        flex: 1;
    }

.login-button.secondary {
    background: linear-gradient(to right, #6c757d, #495057);
}

    .login-button.secondary:hover {
        background: linear-gradient(to right, #5a6268, #3d4348);
    }

/* Стили для полей ввода кода */
#verificationCode {
    text-align: center;
    letter-spacing: 8px;
    font-size: 18px;
    font-weight: bold;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .modal-buttons {
        flex-direction: column;
    }

    #verificationCode {
        letter-spacing: 6px;
        font-size: 16px;
    }
}